jooby-codec
    Preparing search index...

    Namespace getEnergyExport

    Uplink command to get current energies A-, R+, R- (II - III quadrant) for 4 tariffs (T1-T4).

    The corresponding downlink command: getEnergyExport.

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

    // simple response
    const bytes = [
    0x02, 0x66, 0xf2, 0xae, 0x00, 0x00, 0x61, 0xa8, 0x00, 0x0f, 0x12, 0x06, 0x00, 0x32, 0xe0, 0x64,
    0x00, 0x12, 0xd6, 0x87, 0x00, 0x09, 0xfb, 0xf1, 0x00, 0x00, 0x3a, 0x98, 0x00, 0x0c, 0x0b, 0xd0,
    0x00, 0x01, 0xe2, 0x40, 0x00, 0x20, 0xbd, 0x57, 0x00, 0x96, 0xb4, 0x3f, 0x00, 0x0c, 0x0a, 0x14
    ];

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

    console.log(parameters);
    // output:
    {
    wh: [40301230, 3334244, 15000, 2145623],
    vari: [25000, 1234567, 789456, 9876543],
    vare: [987654, 654321, 123456, 789012]
    }

    Command format documentation

    Variables

    accessLevel
    examples
    headerSize
    id
    isLoraOnly
    maxSize
    name

    Functions

    fromBytes
    toBytes
    toJson