jooby-codec
    Preparing search index...

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

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

    const parameters = {
    energyType: energyTypes.A_PLUS
    };

    const bytes = getEnergy.toBytes(parameters);

    // command binary representation
    console.log(bytes);
    // output:
    [15, 1, 1]

    Command format documentation

    Variables

    accessLevel
    examples
    headerSize
    id
    isLoraOnly
    maxSize
    name

    Functions

    fromBytes
    toBytes