InsteonPacketParser
A simple Insteon packet parser to be used by Node Serialport and a PowerLinc Modem (PLM) library or program.
If you see any problems, have any advice, or want to help out please open an issue.
Examples
Send Command and read replies
const SerialPort = ;const InsteonParser = ; /* Open serial port */const port = '/dev/tty.usbserial-A60336ZZ' baudRate: 19200 dataBits: 8 stopBits: 1 parity: 'none'; /* Creating new parser */const parser = ; /* Porting serial port to parser */port; /* On data */parser; /* Result { id: 0x73, type: 'Get IM Configuration', autoLinking: true, monitorMode: true, autoLED: true, deadman: true, success: true }*/ /* On serial port opened send command */port;