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 hourly consumption data. The command contains the complete pulse counter value for the specified hour and the hourly difference in readings, limited to 13 bits.

    For hardware revisions 1, 2.

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

    // 1 hour from 2023.12.23 12:00:00 GMT
    const bytes = [0x2f, 0x97, 0x8c, 0x00, 0x00, 0xa3, 0x80, 0x0a];

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

    console.log(parameters);
    // output:
    {
    startTime2000: 756648000,
    counter: {isMagneticInfluence: true, value: 163},
    diff: [
    {isMagneticInfluence: true, value: 10}
    ]
    }

    Command format documentation

    Variables

    examples
    headerSize
    id
    name

    Functions

    fromBytes
    toBytes