Uplink command to get device rate plan information.
The corresponding downlink command: getRatePlanInfo.
getRatePlanInfo
Supported in MTX1 and MTX3 devices.
import * as getRatePlanInfo from 'jooby-codec/mtx1/commands/uplink/getRatePlanInfo.js';// response to getRatePlanInfo downlink commandconst bytes = [ 0x08, 0x00, 0x00, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x00, 0x00, 0x00, 0x0a, 0x14, 0x1e, 0x28, 0x32, 0x3c, 0x46, 0x50];// decoded payloadconst parameters = getRatePlanInfo.fromBytes(bytes);console.log(parameters);// output:{ tariffTable: 8, activePlan: { id: 1, tariffSet: 2, activateYear: 3, activateMonth: 4, activateDay: 5, specialProfilesArraySize: 6, seasonProfilesArraySize: 7, dayProfilesArraySize: 8 }, passivePlan: { id: 10, tariffSet: 20, activateYear: 30, activateMonth: 40, activateDay: 50, specialProfilesArraySize: 60, seasonProfilesArraySize: 70, dayProfilesArraySize: 80 }} Copy
import * as getRatePlanInfo from 'jooby-codec/mtx1/commands/uplink/getRatePlanInfo.js';// response to getRatePlanInfo downlink commandconst bytes = [ 0x08, 0x00, 0x00, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x00, 0x00, 0x00, 0x0a, 0x14, 0x1e, 0x28, 0x32, 0x3c, 0x46, 0x50];// decoded payloadconst parameters = getRatePlanInfo.fromBytes(bytes);console.log(parameters);// output:{ tariffTable: 8, activePlan: { id: 1, tariffSet: 2, activateYear: 3, activateMonth: 4, activateDay: 5, specialProfilesArraySize: 6, seasonProfilesArraySize: 7, dayProfilesArraySize: 8 }, passivePlan: { id: 10, tariffSet: 20, activateYear: 30, activateMonth: 40, activateDay: 50, specialProfilesArraySize: 60, seasonProfilesArraySize: 70, dayProfilesArraySize: 80 }}
Command format documentation
Uplink command to get device rate plan information.
The corresponding downlink command:
getRatePlanInfo
.Supported in MTX1 and MTX3 devices.
Example: create command instance from command body hex dump
Command format documentation