jooby-codec
    Preparing search index...

    Namespace getDayDemand

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

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

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

    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