jooby-codec
    Preparing search index...

    Namespace setDayProfile

    Downlink command to set day profile for tariff plan.

    Supported in MTX1 and MTX3 devices.

    import * as setDayProfile from 'jooby-codec/mtx1/commands/downlink/setDayProfile.js';

    const parameters = {
    tariffTable: 0,
    index: 5,
    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}
    ]
    };
    const bytes = setDayProfile.toBytes(parameters);

    // command binary representation
    console.log(bytes);
    // output:
    [16, 7, 0, 5, 16, 29, 34, 47, 255]

    Command format documentation

    Variables

    accessLevel
    examples
    headerSize
    id
    isLoraOnly
    maxSize
    name

    Functions

    fromBytes
    toBytes