Uplink command to get current active energy (A+) by default or selected active energy (A+ or A-) for 4 tariffs (T1-T4).
A+
A-
T1
T4
import * as getEnergy from 'jooby-codec/mtx1/commands/uplink/getEnergy.js';// received A- energiesconst bytes = [0xd0, 0x02, 0x66, 0xf2, 0xae, 0x00, 0x00, 0x09, 0x1d, 0x00, 0x20, 0xbd, 0x57];// decoded payloadconst parameters = getEnergy.fromBytes(bytes);console.log(parameters);// output:{ energyType: 2, energies: [40301230, null, 2333, 2145623]} Copy
import * as getEnergy from 'jooby-codec/mtx1/commands/uplink/getEnergy.js';// received A- energiesconst bytes = [0xd0, 0x02, 0x66, 0xf2, 0xae, 0x00, 0x00, 0x09, 0x1d, 0x00, 0x20, 0xbd, 0x57];// decoded payloadconst parameters = getEnergy.fromBytes(bytes);console.log(parameters);// output:{ energyType: 2, energies: [40301230, null, 2333, 2145623]}
Command format documentation
Uplink command to get current active energy (
A+
) by default or selected active energy (A+
orA-
) for 4 tariffs (T1
-T4
).Example: create command instance from command body hex dump
Command format documentation