jooby-codec
    Preparing search index...

    Downlink command to read load graphs.

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

    const parameters = {
    date: {
    year: 21,
    month: 6,
    date: 18
    },
    demandParam: 0x81,
    firstIndex: 0,
    count: 2,
    period: 30
    };

    const bytes = getDemand.toBytes(parameters);

    // command binary representation
    console.log(bytes);
    // output:
    [118, 7, 42, 210, 129, 0, 0, 2, 30]

    Command format documentation

    Variables

    accessLevel
    examples
    headerSize
    id
    isLoraOnly
    maxSize
    name

    Functions

    fromBytes
    toBytes