Uplink command to get events counters.
The corresponding downlink command: getEventsCounters.
getEventsCounters
Supported in MTX1 and MTX3 devices.
import * as getEventsCounters from 'jooby-codec/mtx1/commands/uplink/getEventsCounters.js';// response to getEventsCounters downlink commandconst bytes = [0x00, 0x48, 0x00, 0x42, 0x01, 0x56, 0x00, 0x4d, 0x00, 0x22, 0x00, 0x16, 0x01, 0x2a];// decoded payloadconst parameters = getEventsCounters.fromBytes(bytes);console.log(parameters);// output:{ accessClosed: 22, accessError: 34, localParametersChange: 342, remoteParametersChange: 77, powerOff: 66, restart: 72, setClock: 298} Copy
import * as getEventsCounters from 'jooby-codec/mtx1/commands/uplink/getEventsCounters.js';// response to getEventsCounters downlink commandconst bytes = [0x00, 0x48, 0x00, 0x42, 0x01, 0x56, 0x00, 0x4d, 0x00, 0x22, 0x00, 0x16, 0x01, 0x2a];// decoded payloadconst parameters = getEventsCounters.fromBytes(bytes);console.log(parameters);// output:{ accessClosed: 22, accessError: 34, localParametersChange: 342, remoteParametersChange: 77, powerOff: 66, restart: 72, setClock: 298}
Command format documentation
Uplink command to get events counters.
The corresponding downlink command:
getEventsCounters
.Supported in MTX1 and MTX3 devices.
Example: create command instance from command body hex dump
Command format documentation