Uplink command to get current parameters.
import * as getCurrentStatusMeter from 'jooby-codec/mtx1/commands/uplink/getCurrentStatusMeter.js';// simple responseconst bytes = [ 0x00, 0x01, 0x22, 0x50, 0x00, 0x00, 0x87, 0x07, 0x00, 0x0e, 0x99, 0x36, 0x00, 0x00, 0x01, 0x54, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xb4, 0x61, 0x85, 0x10, 0x01, 0x01, 0x03, 0x01];// decoded payloadconst parameters = getCurrentStatusMeter.fromBytes(bytes);console.log(parameters);// output:{ operatingSeconds: 74320, tbadVAVB: 34567, tbadImaxAll: 956726, tbadPmaxAll: 340, tbadFREQ: 436, relayStatus: { RELAY_STATE: true, RELAY_UBAD: false, RELAY_UNEQ_CURRENT: false, RELAY_OFF_CENTER: true, RELAY_IMAX: true, RELAY_PMAX: false }, statusEvent: { 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 }, calibrationFlags: { calibrationEnable: true, hardkey: false, keyPressTest: false, keyOpenkeyTest: false, keyGerkonTest: false, keyOpenKlemaTest: false, keyOpenModuleTest: false, keyPress2Test: false }, currentTariffs: { 'A+': 1, 'A-': 3 }, isSummerTime: true} Copy
import * as getCurrentStatusMeter from 'jooby-codec/mtx1/commands/uplink/getCurrentStatusMeter.js';// simple responseconst bytes = [ 0x00, 0x01, 0x22, 0x50, 0x00, 0x00, 0x87, 0x07, 0x00, 0x0e, 0x99, 0x36, 0x00, 0x00, 0x01, 0x54, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xb4, 0x61, 0x85, 0x10, 0x01, 0x01, 0x03, 0x01];// decoded payloadconst parameters = getCurrentStatusMeter.fromBytes(bytes);console.log(parameters);// output:{ operatingSeconds: 74320, tbadVAVB: 34567, tbadImaxAll: 956726, tbadPmaxAll: 340, tbadFREQ: 436, relayStatus: { RELAY_STATE: true, RELAY_UBAD: false, RELAY_UNEQ_CURRENT: false, RELAY_OFF_CENTER: true, RELAY_IMAX: true, RELAY_PMAX: false }, statusEvent: { 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 }, calibrationFlags: { calibrationEnable: true, hardkey: false, keyPressTest: false, keyOpenkeyTest: false, keyGerkonTest: false, keyOpenKlemaTest: false, keyOpenModuleTest: false, keyPress2Test: false }, currentTariffs: { 'A+': 1, 'A-': 3 }, isSummerTime: true}
Command format documentation
Uplink command to get current parameters.
Example: create command instance from command body hex dump
Command format documentation