Uplink command to read load and voltage graphs.
import * as getDemand from 'jooby-codec/mtx1/commands/uplink/getDemand.js';// response to getDemand downlink commandconst bytes = [0x31, 0x42, 0xa0, 0x00, 0x19, 0x01, 0x3c, 0x04, 0xff];// decoded payloadconst parameters = getDemand.fromBytes(bytes);console.log(parameters);// output:{ date: { year: 24, month: 10, date: 2 }, energyType: 160, firstIndex: 25, count: 1, period: 60, demands: [ { lastSummerHour: 4 } ]} Copy
import * as getDemand from 'jooby-codec/mtx1/commands/uplink/getDemand.js';// response to getDemand downlink commandconst bytes = [0x31, 0x42, 0xa0, 0x00, 0x19, 0x01, 0x3c, 0x04, 0xff];// decoded payloadconst parameters = getDemand.fromBytes(bytes);console.log(parameters);// output:{ date: { year: 24, month: 10, date: 2 }, energyType: 160, firstIndex: 25, count: 1, period: 60, demands: [ { lastSummerHour: 4 } ]}
Command format documentation
Uplink command to read load and voltage graphs.
Example: create command instance from command body hex dump
Command format documentation