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