jooby-codec
    Preparing search index...

    Namespace getMonthMaxDemandExport

    Uplink command to get max power A- for 4 tariffs (T1-T4) for a given month.

    The corresponding downlink command: getMonthMaxDemandExport.

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

    // received max power
    const bytes = [
    0x18, 0x03,
    0x16, 0x0c, 0x30, 0x00, 0x00, 0x09, 0x78
    0x0c, 0x0c, 0x21, 0x00, 0x00, 0x0e, 0x3c
    0x19, 0x0f, 0x04, 0x00, 0x00, 0x04, 0xdc
    0x08, 0x11, 0x20, 0x00, 0x00, 0x14, 0x7c
    ];

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

    console.log(parameters);
    // output:
    {
    year: 24,
    month: 3,
    tariffs: [
    {
    date: 22,
    hours: 12,
    minutes: 48,
    power: 2424
    },
    {
    date: 12,
    hours: 12,
    minutes: 33,
    power: 3644
    },
    {
    date: 25,
    hours: 15,
    minutes: 4,
    power: 1244
    },
    {
    date: 8,
    hours: 17,
    minutes: 32,
    power: 5244
    }
    ]
    }

    Command format documentation

    Variables

    accessLevel
    examples
    headerSize
    id
    isLoraOnly
    maxSize
    name

    Functions

    fromBytes
    toBytes