jooby-codec
    Preparing search index...

    Namespace getDayProfile

    Uplink command to get day profile for the given tariff table.

    The corresponding downlink command: getDayProfile.

    Supported in MTX1 and MTX3 devices.

    import * as getDayProfile from 'jooby-codec/mtx1/commands/uplink/getDayProfile.js';

    // response with 4 periods
    const bytes = [0x10, 0x1d, 0x22, 0x2f, 0xff];

    // decoded payload
    const 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

    Variables

    accessLevel
    examples
    headerSize
    id
    isLoraOnly
    maxSize
    name

    Functions

    fromBytes
    toBytes