jooby-codec
    Preparing search index...

    Namespace getDayEnergies

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

    This command can be transmitted only via Lora.

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

    // response to getDayEnergies downlink command
    const bytes = [0x2a, 0x43, 0x11, 0x22, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x20, 0x00];

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

    console.log(parameters);
    // output:
    {
    date: {
    year: 21,
    month: 2,
    date: 3
    },
    energies: [
    null,
    {
    'A+': 0x1000,
    'A-R+': 0x2000
    },
    null,
    null
    ]
    }

    Command format documentation

    Variables

    accessLevel
    examples
    headerSize
    id
    isLoraOnly
    maxSize
    name

    Functions

    fromBytes
    toBytes
    toJson