jooby-codec
    Preparing search index...

    Namespace getArchiveHours

    Command to request/receive the archive data of hourly consumption. In the data field of the command, it is necessary to set the start date and hour for reading the archive. In case there is no data in the archive, a base value of 0xffffffff will be provided. Since the length of the transmitted data from the sensor is limited, not all requested data will be transferred.

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

    // response to getArchiveHours downlink command
    const bytes = [0x2f, 0x97, 0x8c, 0x00, 0x00, 0xa3, 0x80, 0x0a];

    // decoded payload
    const parameters = getArchiveHours.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