Uplink command to get device current saldo information.
The corresponding downlink command: getSaldo.
getSaldo
Supported in MTX1 and MTX3 devices.
import * as getSaldo from 'jooby-codec/mtx1/commands/uplink/getSaldo.js';// response to getSaldo downlink commandconst bytes = [ 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x07, 0x09, 0x17, 0x06, 0x23];// decoded payloadconst parameters = getSaldo.fromBytes(bytes);console.log(parameters);// output:{ currentSaldo: 1, count: 0, energy: [2, 3, 4, 5], beginSaldoOfPeriod: 7, date: { month: 9, date: 23, hours: 6, minutes: 35 }} Copy
import * as getSaldo from 'jooby-codec/mtx1/commands/uplink/getSaldo.js';// response to getSaldo downlink commandconst bytes = [ 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x07, 0x09, 0x17, 0x06, 0x23];// decoded payloadconst parameters = getSaldo.fromBytes(bytes);console.log(parameters);// output:{ currentSaldo: 1, count: 0, energy: [2, 3, 4, 5], beginSaldoOfPeriod: 7, date: { month: 9, date: 23, hours: 6, minutes: 35 }}
Command format documentation
Uplink command to get device current saldo information.
The corresponding downlink command:
getSaldo
.Supported in MTX1 and MTX3 devices.
Example: create command instance from command body hex dump
Command format documentation