jooby-codec
    Preparing search index...

    Namespace getDemand

    Uplink command to read load and voltage graphs.

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

    // response to getDemand downlink command
    const bytes = [0x31, 0x42, 0xa0, 0x00, 0x19, 0x01, 0x3c, 0x04, 0xff];

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

    console.log(parameters);
    // output:
    {
    date: { year: 24, month: 10, date: 2 },
    energyType: 160,
    firstIndex: 25,
    count: 1,
    period: 60,
    demands: [ { lastSummerHour: 4 } ]
    }

    Command format documentation

    Interfaces

    IGetDemandResponseParameters

    Variables

    accessLevel
    examples
    headerSize
    id
    isLoraOnly
    maxSize
    name

    Functions

    fromBytes
    toBytes