jooby-codec
    Preparing search index...

    Namespace getHalfHourEnergies

    Downlink command to get halfhours energies by 4 tariffs (T1-T4).

    This command can be transmitted only via Lora.

    Supported in MTX1 and MTX3 devices.

    import * as getHalfHourEnergies from 'jooby-codec/mtx1/commands/downlink/getHalfHourEnergies.js';

    const parameters = {
    date: {
    year: 21,
    month: 2,
    date: 3,
    },
    firstHalfhour: 5,
    halfhoursNumber: 4,
    energies: {
    'A+': true,
    'A+R+': true,
    }
    };

    const bytes = getHalfHourEnergies.toBytes(parameters);

    // command binary representation
    console.log(bytes);
    // output:
    [111, 5, 42, 67, 3, 5, 4]

    Command format documentation

    Variables

    accessLevel
    examples
    headerSize
    id
    isLoraOnly
    maxSize
    name

    Functions

    fromBytes
    toBytes