Connect to the J1939 network Must be called before any other operations
Disconnect from the J1939 network Cleans up resources and stops all listeners
Get client's source address
Check if client is connected
Subscribe to a specific PGN Handler is called whenever a message with this PGN is received
Parameter Group Number to subscribe to
Callback invoked with decoded message
Unsubscribe function
Request a PGN from the network Sends Request PGN (59904/0xEA00) asking for data
Parameter Group Number to request
Optionaldestination: number
Target address (default: 255 for broadcast)
Send a PGN with data Encodes the data according to J1939 and transmits
Parameter Group Number to send
Decoded data to encode and send
Optionaldestination: number
Target address (default: 255 for broadcast)
J1939 Client Interface
This is the primary SDK interface. All methods must be implemented by both JS and Python SDKs with identical semantics.