Uplink command to get day profile for the given tariff table.
The corresponding downlink command: getDayProfile.
getDayProfile
Supported in MTX1 and MTX3 devices.
import * as getDayProfile from 'jooby-codec/mtx1/commands/uplink/getDayProfile.js';// response with 4 periodsconst bytes = [0x10, 0x1d, 0x22, 0x2f, 0xff];// decoded payloadconst parameters = getDayProfile.fromBytes(bytes);console.log(parameters);// output:{ periods: [ {tariff: 0, isFirstHalfHour: true, hour: 2}, {tariff: 1, isFirstHalfHour: false, hour: 3}, {tariff: 2, isFirstHalfHour: true, hour: 4}, {tariff: 3, isFirstHalfHour: false, hour: 5} ]} Copy
import * as getDayProfile from 'jooby-codec/mtx1/commands/uplink/getDayProfile.js';// response with 4 periodsconst bytes = [0x10, 0x1d, 0x22, 0x2f, 0xff];// decoded payloadconst parameters = getDayProfile.fromBytes(bytes);console.log(parameters);// output:{ periods: [ {tariff: 0, isFirstHalfHour: true, hour: 2}, {tariff: 1, isFirstHalfHour: false, hour: 3}, {tariff: 2, isFirstHalfHour: true, hour: 4}, {tariff: 3, isFirstHalfHour: false, hour: 5} ]}
Command format documentation
Uplink command to get day profile for the given tariff table.
The corresponding downlink command:
getDayProfile
.Supported in MTX1 and MTX3 devices.
Example: create command instance from command body hex dump
Command format documentation