jooby-codec
    Preparing search index...

    The command gives the pulse counter's full value for the previous day's billing hour.

    This command is generated by the sensor and sent within a specified period without a request from the server when configured to issue daily consumption data.

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

    // 4 channels at 2023.12.23 00:00:00 GMT
    const bytes = [0x2f, 0x97, 0x55, 0x0c, 0x83, 0x01, 0x08, 0x0a];

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

    console.log(parameters);
    // output:
    {
    startTime2000: 756604800,
    channelList: [
    {value: 12, index: 1},
    {value: 131, index: 3},
    {value: 8, index: 5},
    {value: 10, index: 7}
    ]
    }

    Command format documentation

    Interfaces

    IDayMcResponseParameters

    Variables

    examples
    headerSize
    id
    name

    Functions

    fromBytes
    toBytes