jooby-codec
    Preparing search index...

    Namespace getExAbsArchiveHoursMc

    Command for retrieving hourly consumption (absolute values) of device channels from the archive.

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

    // response to getExAbsArchiveHoursMc downlink command
    const bytes = [0x2f, 0x97, 0x2c, 0x0f, 0x83, 0x01, 0x0a, 0x08, 0x0a, 0x08, 0x0a, 0x0c, 0x0a];

    // decoded payload
    const parameters = getExAbsArchiveHoursMc.fromBytes(commandBody);

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

    Command format documentation

    Variables

    examples
    headerSize
    id
    name

    Functions

    fromBytes
    toBytes