jooby-codec
    Preparing search index...

    Namespace getDemand

    Uplink command to read load graphs.

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

    // response to getDemand downlink command
    const bytes = [0x2a, 0xd2, 0x81, 0x00, 0x00, 0x02, 0x1e, 0x07, 0xd0, 0xab, 0xcd];

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

    console.log(parameters);
    // output:
    {
    date: {
    year: 21,
    month: 6,
    date: 18
    },
    demandParam: 0x81,
    firstIndex: 0,
    count: 2,
    period: 30,
    demands: [2000, 43981]
    }

    Command format documentation

    Variables

    accessLevel
    examples
    headerSize
    id
    isLoraOnly
    maxSize
    name

    Functions

    fromBytes
    toBytes