jooby-codec
    Preparing search index...

    Namespace getHalfHourEnergies

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

    This command can be transmitted only via Lora.

    Supported in MTX3 devices.

    import * as getHalfHourEnergies from 'jooby-codec/mtx3/commands/uplink/getHalfHourEnergies.js';

    // response to getHalfHourEnergies downlink command
    const bytes = [0x35, 0x2e, 0x07, 0x01, 0x02, 0x10, 0x00, 0x20, 0x00, 0x30, 0x00, 0x40, 0x00, 0x30, 0x00, 0x40, 0x00];

    // decoded payload
    const parameters = getHalfHourEnergies.fromBytes(bytes);

    console.log(parameters);
    // output:
    {
    date: {
    year: 26,
    month: 9,
    date: 14
    },
    firstHalfhour: 1,
    halfhoursNumber: 2,
    energies: {
    'A+': [0x1000, 0x2000],
    'A+R+': [0x3000, 0x4000],
    'A+R-': [0x3000, 0x4000]
    }
    }

    Command format documentation

    IGetHalfHourEnergiesResponseParameters
    examples
    fromBytes
    toBytes
    accessLevel → mtx1.commands.uplink.getHalfHourEnergies.accessLevel
    headerSize → mtx1.commands.uplink.getHalfHourEnergies.headerSize
    id → mtx1.commands.uplink.getHalfHourEnergies.id
    isLoraOnly → mtx1.commands.uplink.getHalfHourEnergies.isLoraOnly
    maxSize → mtx1.commands.uplink.getHalfHourEnergies.maxSize
    name → mtx1.commands.uplink.getHalfHourEnergies.name
    toJson → mtx1.commands.uplink.getHalfHourEnergies.toJson