Dg Tinxy V1 Actions
Execute actions and control Dg Tinxy V1 devices
Device Selection
End Connection
End the connection to the device.
Force Led State
Force LED state control (opcode 0xE1, 1 byte) Args: params: Parameters containing transport_id and mode mode=0: Force LED OFF completely mode=1: Force LED ON (steady) mode=2: Return to automatic mode Returns: bool: True if command was successful Raises: FailedToSetLedWhiteError: If the command failed
Parameters:
Get Device Info
Get the device info from DG firmware (opcode 0xEB)
Get Dg State
Get DG state (opcode 0xF0 reply 14 bytes)
Get Network Details
Delegate to NIC v2 get_network_details (0xE3).
Get Primary Network Credentials
Delegate to NIC v2 GET primary network credentials (opcode 0xE6).
Perform Ota Update
Delegate to NIC v2 OTA update (opcode 0xE7).
Parameters:
Restart Esp
Delegate to NIC v2 restart (opcode 0xE2).
Set Dg Message Interval
Set DG message interval (opcode 0xF1 with uint32)
Parameters:
Set Primary Network Credentials
Delegate to NIC v2 SET primary network credentials (opcode 0xE6).
Parameters:
Start Connection
Start a connection to a DG device
Parameters:
Switch To Primary Network
Delegate to NIC v2 switch_to_primary_network (0xE0, network=0).
Switch To Secondary Network
Delegate to NIC v2 switch_to_secondary_network (0xE0, network=1).
Update Packet Handler
Handle update packet from the DG Tinxy device