jooby-codec
    Preparing search index...

    This command is generated by the sensor and sent within a specified period without a request from the server when configured to issue hour consumption data. The command contains the total value of the pulse counter for the specified hour and hourly difference, which is limited to 31-bit size.

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

    // 4 first channels at 2023.12.23 12:00:00 GMT
    const bytes = [
    0x2f, 0x97, 0x2c, 0x0f, 0x83, 0x01, 0x0a, 0xc0,
    0x06, 0x0c, 0x26, 0x08, 0xea, 0x01, 0x0b
    ];

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

    console.log(parameters);
    // output:
    {
    startTime2000: 756648000,
    hours: 2,
    channelList: [
    {value: 131, index: 1, diff: [10]},
    {value: 832, index: 2, diff: [12]},
    {value: 38, index: 3, diff: [8]},
    {value: 234, index: 4, diff: [11]}
    ]
    }

    Command format documentation

    Interfaces

    IHourMcResponseParameters

    Variables

    examples
    headerSize
    id
    name

    Functions

    fromBytes
    toBytes