jooby-codec
    Preparing search index...

    Namespace getDayDemandExport

    Uplink command to get day active energy (A-) by default or selected active energy (A+ or A-) for 4 tariffs (T1-T4) for date.

    The corresponding downlink command: getDayDemandExport.

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

    // received A- energies
    const bytes = [0x18, 0x03, 0x16, 0x0d, 0x02, 0x66, 0xf2, 0xae, 0x00, 0x00, 0x09, 0x1d, 0x00, 0x20, 0xbd, 0x57];

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

    console.log(parameters);
    // output:
    {
    date: {
    year: 24,
    month: 3,
    date: 22
    },
    energyType: 2,
    energies: [40301230, null, 2333, 2145623]
    }

    Command format documentation

    Variables

    accessLevel
    examples
    headerSize
    id
    isLoraOnly
    maxSize
    name

    Functions

    fromBytes
    toBytes
    toJson