jooby-codec
    Preparing search index...

    Namespace getRatePlanInfo

    Uplink command to get device rate plan information.

    The corresponding downlink command: getRatePlanInfo.

    Supported in MTX1 and MTX3 devices.

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

    // response to getRatePlanInfo downlink command
    const bytes = [
    0x08, 0x00, 0x00, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,
    0x00, 0x00, 0x00, 0x0a, 0x14, 0x1e, 0x28, 0x32, 0x3c, 0x46, 0x50
    ];

    // decoded payload
    const parameters = getRatePlanInfo.fromBytes(bytes);

    console.log(parameters);
    // output:
    {
    tariffTable: 8,
    activePlan: {
    id: 1,
    tariffSet: 2,
    activateYear: 3,
    activateMonth: 4,
    activateDay: 5,
    specialProfilesArraySize: 6,
    seasonProfilesArraySize: 7,
    dayProfilesArraySize: 8
    },
    passivePlan: {
    id: 10,
    tariffSet: 20,
    activateYear: 30,
    activateMonth: 40,
    activateDay: 50,
    specialProfilesArraySize: 60,
    seasonProfilesArraySize: 70,
    dayProfilesArraySize: 80
    }
    }

    Command format documentation

    Interfaces

    IGetRatePlanInfoResponseParameters

    Variables

    accessLevel
    examples
    headerSize
    id
    isLoraOnly
    maxSize
    name

    Functions

    fromBytes
    toBytes