SoftCode
- class SoftCode[source]
Bases:
objectHandles UDP SoftCode communication.
- client_socket
The UDP socket.
- Type:
socket.socket
- address
The (ip, port) address for UDP communication.
- Type:
tuple
- __init__() None[source]
Initializes the SoftCode connection.
Methods
__init__()Initializes the SoftCode connection.
close()Closes the UDP socket.
kill()Sends a kill signal to stop the current session.
send(idx)Sends a SoftCode to the configured address.
- send(idx: int) None[source]
Sends a SoftCode to the configured address.
- Parameters:
idx (int) – The softcode index to send.
- kill() None[source]
Sends a kill signal to stop the current session.
- close() None[source]
Closes the UDP socket.