jooby-codec
    Preparing search index...

    This command is generated by the sensor and sent periodically without any request from the server when it is configured to provide daily consumption data. The command contains complete pulse counter data for the specified day.

    For hardware revisions 1, 2.

    import * as day from 'jooby-codec/analog/commands/uplink/day.js';

    // day value for 2023.12.23 00:00:00 GMT
    const bytes = [0x2f, 0x97, 0x80, 0x00, 0x00, 0x7a];

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

    console.log(parameters);
    // output:
    {
    value: 122,
    isMagneticInfluence: true,
    startTime2000: 756604800
    }

    Command format documentation

    Variables

    examples
    headerSize
    id
    name

    Functions

    fromBytes
    toBytes