Uplink command to get critical events.
The corresponding downlink command: getCriticalEvent.
getCriticalEvent
import * as getCriticalEvent from 'jooby-codec/mtx3/commands/uplink/getCriticalEvent.js';// response to getCriticalEvent downlink commandconst bytes = [0x01, 0x01, 0xe9, 0x03, 0x0c, 0x0a, 0x16, 0x21, 0x07];// decoded payloadconst parameters = getCriticalEvent.fromBytes(bytes);console.log(parameters);// output:{ event: 1, name: 'MAGNETIC_ON', index: 1, date: { year: 233, month: 3, date: 12, hours: 10, minutes: 22, seconds: 33 }, count: 7} Copy
import * as getCriticalEvent from 'jooby-codec/mtx3/commands/uplink/getCriticalEvent.js';// response to getCriticalEvent downlink commandconst bytes = [0x01, 0x01, 0xe9, 0x03, 0x0c, 0x0a, 0x16, 0x21, 0x07];// decoded payloadconst parameters = getCriticalEvent.fromBytes(bytes);console.log(parameters);// output:{ event: 1, name: 'MAGNETIC_ON', index: 1, date: { year: 233, month: 3, date: 12, hours: 10, minutes: 22, seconds: 33 }, count: 7}
Command format documentation
Uplink command to get critical events.
The corresponding downlink command:
getCriticalEvent
.Example: create command instance from command body hex dump
Command format documentation