Command to receive events from device archive.
import * as getArchiveEvents from 'jooby-codec/analog/commands/uplink/getArchiveEvents.js';// 1 event "MAGNET_ON" at 2023.04.05 13:17:20 GMTconst bytes = [0x2b, 0xc0, 0x31, 0x60, 0x01, 0x01];// decoded payloadconst parameters = getArchiveEvents.fromBytes(bytes);console.log(parameters);// output:{ eventList: [ { time2000: 734015840, id: 1, sequenceNumber: 1 } ]} Copy
import * as getArchiveEvents from 'jooby-codec/analog/commands/uplink/getArchiveEvents.js';// 1 event "MAGNET_ON" at 2023.04.05 13:17:20 GMTconst bytes = [0x2b, 0xc0, 0x31, 0x60, 0x01, 0x01];// decoded payloadconst parameters = getArchiveEvents.fromBytes(bytes);console.log(parameters);// output:{ eventList: [ { time2000: 734015840, id: 1, sequenceNumber: 1 } ]}
Command format documentation
Command to receive events from device archive.
Example: create command instance from command body hex dump
Command format documentation