Uplink command to get device status events.
The corresponding downlink command: getEventStatus.
getEventStatus
Supported in MTX1 and MTX3 devices.
import * as getEventStatus from 'jooby-codec/mtx1/commands/uplink/getEventStatus.js';// response to getEventStatus downlink commandconst bytes = [0x85, 0x10];// decoded payloadconst parameters = getEventStatus.fromBytes(bytes);console.log(parameters);// output:{ CASE_OPEN: true, MAGNETIC_ON: false, PARAMETERS_UPDATE_REMOTE: true, PARAMETERS_UPDATE_LOCAL: false, RESTART: false, ERROR_ACCESS: false, TIME_SET: false, TIME_CORRECT: true, DEVICE_FAILURE: false, CASE_TERMINAL_OPEN: false, CASE_MODULE_OPEN: false, TARIFF_TABLE_SET: false, TARIFF_TABLE_GET: true, PROTECTION_RESET_EM: false, PROTECTION_RESET_MAGNETIC: false} Copy
import * as getEventStatus from 'jooby-codec/mtx1/commands/uplink/getEventStatus.js';// response to getEventStatus downlink commandconst bytes = [0x85, 0x10];// decoded payloadconst parameters = getEventStatus.fromBytes(bytes);console.log(parameters);// output:{ CASE_OPEN: true, MAGNETIC_ON: false, PARAMETERS_UPDATE_REMOTE: true, PARAMETERS_UPDATE_LOCAL: false, RESTART: false, ERROR_ACCESS: false, TIME_SET: false, TIME_CORRECT: true, DEVICE_FAILURE: false, CASE_TERMINAL_OPEN: false, CASE_MODULE_OPEN: false, TARIFF_TABLE_SET: false, TARIFF_TABLE_GET: true, PROTECTION_RESET_EM: false, PROTECTION_RESET_MAGNETIC: false}
Command format documentation
Uplink command to get device status events.
The corresponding downlink command:
getEventStatus
.Supported in MTX1 and MTX3 devices.
Example: create command instance from command body hex dump
Command format documentation