jooby-codec
    Preparing search index...

    Namespace getDayDemand

    Downlink command to get day active energy (A+) by default or selected active energy (A+ or A-) for 4 tariffs (T1-T4) for date.

    import * as getDayDemand from 'jooby-codec/mtx1/commands/downlink/getDayDemand.js';
    import * as energyTypes from 'jooby-codec/mtx1/constants/energyTypes.js';

    const parameters = {
    date: {
    year: 24,
    month: 3,
    date: 22
    },
    energyType: energyTypes.A_PLUS
    };

    const bytes = getDayDemand.toBytes(parameters);

    // command binary representation
    console.log(bytes);
    // output:
    [22, 4, 24, 3, 22, 1]

    Command format documentation

    Variables

    accessLevel
    examples
    headerSize
    id
    isLoraOnly
    maxSize
    name

    Functions

    fromBytes
    toBytes