Downlink command to read load graphs.
import * as getDemand from 'jooby-codec/mtx3/commands/downlink/getDemand.js';const parameters = { date: { year: 21, month: 6, date: 18 }, demandParam: 0x81, firstIndex: 0, count: 2, period: 30};const bytes = getDemand.toBytes(parameters);// command binary representationconsole.log(bytes);// output:[118, 7, 42, 210, 129, 0, 0, 2, 30] Copy
import * as getDemand from 'jooby-codec/mtx3/commands/downlink/getDemand.js';const parameters = { date: { year: 21, month: 6, date: 18 }, demandParam: 0x81, firstIndex: 0, count: 2, period: 30};const bytes = getDemand.toBytes(parameters);// command binary representationconsole.log(bytes);// output:[118, 7, 42, 210, 129, 0, 0, 2, 30]
Command format documentation
Downlink command to read load graphs.
Example
Command format documentation