Downlink command to provide the date and parameters of tariff plan activation.
Supported in MTX1 and MTX3 devices.
import * as activateRatePlan from 'jooby-codec/mtx1/commands/downlink/activateRatePlan.js';const parameters = { tariffTable: 8, tariffPlan: { id: 1, tariffSet: 2, activateYear: 3, activateMonth: 4, activateDay: 5, specialProfilesArraySize: 6, seasonProfilesArraySize: 7, dayProfilesArraySize: 8 }};const bytes = activateRatePlan.toBytes(parameters);// command binary representationconsole.log(bytes);// output:[19, 12, 8, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8] Copy
import * as activateRatePlan from 'jooby-codec/mtx1/commands/downlink/activateRatePlan.js';const parameters = { tariffTable: 8, tariffPlan: { id: 1, tariffSet: 2, activateYear: 3, activateMonth: 4, activateDay: 5, specialProfilesArraySize: 6, seasonProfilesArraySize: 7, dayProfilesArraySize: 8 }};const bytes = activateRatePlan.toBytes(parameters);// command binary representationconsole.log(bytes);// output:[19, 12, 8, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8]
Command format documentation
Downlink command to provide the date and parameters of tariff plan activation.
Supported in MTX1 and MTX3 devices.
Example
Command format documentation