Command for reporting new events.
import * as newEvent from 'jooby-codec/analog/commands/uplink/newEvent.js';// event for MAGNET_ONconst bytes = [0x01, 0x02, 0x2b, 0xc0, 0x31, 0x60];// decoded payloadconst parameters = newEvent.fromBytes(bytes);console.log(parameters);// output:{ id: 1, sequenceNumber: 2, data: {time2000: 734015840}} Copy
import * as newEvent from 'jooby-codec/analog/commands/uplink/newEvent.js';// event for MAGNET_ONconst bytes = [0x01, 0x02, 0x2b, 0xc0, 0x31, 0x60];// decoded payloadconst parameters = newEvent.fromBytes(bytes);console.log(parameters);// output:{ id: 1, sequenceNumber: 2, data: {time2000: 734015840}}
Command format documentation
Command for reporting new events.
Example: create command instance from command body hex dump
Command format documentation