jooby-codec
    Preparing search index...

    Downlink command to read load graphs.

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

    const parameters = {
    date: {
    year: 21,
    month: 6,
    date: 18
    },
    demandType: demandTypes.ACTIVE_ENERGY_A_PLUS,
    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