Uplink command to read load graphs.
import * as getDemand from 'jooby-codec/mtx3/commands/uplink/getDemand.js';// response to getDemand downlink commandconst bytes = [0x2a, 0xd2, 0x81, 0x00, 0x00, 0x02, 0x1e, 0x07, 0xd0, 0xab, 0xcd];// decoded payloadconst parameters = getDemand.fromBytes(bytes);console.log(parameters);// output:{ date: { year: 21, month: 6, date: 18 }, demandParam: 0x81, firstIndex: 0, count: 2, period: 30, demands: [2000, 43981]} Copy
import * as getDemand from 'jooby-codec/mtx3/commands/uplink/getDemand.js';// response to getDemand downlink commandconst bytes = [0x2a, 0xd2, 0x81, 0x00, 0x00, 0x02, 0x1e, 0x07, 0xd0, 0xab, 0xcd];// decoded payloadconst parameters = getDemand.fromBytes(bytes);console.log(parameters);// output:{ date: { year: 21, month: 6, date: 18 }, demandParam: 0x81, firstIndex: 0, count: 2, period: 30, demands: [2000, 43981]}
Command format documentation
Uplink command to read load graphs.
Example: create command instance from command body hex dump
Command format documentation