jooby-codec
    Preparing search index...

    This command is an extended version of hourMc. Command could send up to 256 hours if transport support. To get this uplink need to set param mqtt data send config in parameter types.

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

    // 1 channel at 2023.12.23 12:00:00 GMT
    const bytes = [0x2f, 0x97, 0x0c, 0x07, 0x01, 0x83, 0x01, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a];

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

    console.log(parameters);
    // output:
    {
    startTime2000: 756648000,
    hour: 12,
    hours: 7,
    channelList: [
    {value: 131, diff: [10, 10, 10, 10, 10, 10, 10], index: 1}
    ]
    }

    Command format documentation

    Variables

    examples
    headerSize
    id
    name

    Functions

    fromBytes
    toBytes