Downlink command to get day active energy (A+) by default or selected active energy (A+ or A-) for 4 tariffs (T1-T4) for date.
A+
A-
T1
T4
import * as getDayDemand from 'jooby-codec/mtx1/commands/downlink/getDayDemand.js';import * as energyTypes from 'jooby-codec/mtx1/constants/energyTypes.js';const parameters = { date: { year: 24, month: 3, date: 22 }, energyType: energyTypes.A_PLUS};const bytes = getDayDemand.toBytes(parameters);// command binary representationconsole.log(bytes);// output:[22, 4, 24, 3, 22, 1] Copy
import * as getDayDemand from 'jooby-codec/mtx1/commands/downlink/getDayDemand.js';import * as energyTypes from 'jooby-codec/mtx1/constants/energyTypes.js';const parameters = { date: { year: 24, month: 3, date: 22 }, energyType: energyTypes.A_PLUS};const bytes = getDayDemand.toBytes(parameters);// command binary representationconsole.log(bytes);// output:[22, 4, 24, 3, 22, 1]
Command format documentation
Downlink command to get day active energy (
A+
) by default or selected active energy (A+
orA-
) for 4 tariffs (T1
-T4
) for date.Example
Command format documentation