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 MTX1 devices.

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

    // response to getHalfHourEnergies downlink command
    const bytes = [0x2a, 0x43, 0x11, 0x01, 0x02, 0x40, 0x00, 0x80, 0x2f, 0x44, 0xd2, 0xb0, 0x39];

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

    console.log(parameters);
    // output:
    {
    date: {
    year: 21,
    month: 2,
    date: 3
    },
    firstHalfhour: 1,
    halfhoursNumber: 2,
    energies: {
    'A+': [
    {tariff: 1, energy: 0},
    {tariff: 2, energy: 47}
    ],
    'A-R+': [
    {tariff: 1, energy: 1234},
    {tariff: 2, energy: 12345}
    ]
    }
    }

    Command format documentation

    Interfaces

    IGetHalfHourEnergiesResponseParameters

    Variables

    accessLevel
    examples
    headerSize
    id
    isLoraOnly
    maxSize
    name

    Functions

    fromBytes
    toBytes
    toJson