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/downlink/getArchiveHours.js';

    // 2 hours counter from 2023.12.23 12:00:00 GMT
    const parameters = {startTime2000: 756648000, hours: 2};
    const bytes = getArchiveHours.toBytes(parameters);

    // command binary representation
    console.log(bytes);
    // output:
    [5, 4, 47, 151, 12, 2]

    Command format documentation

    Variables

    examples
    headerSize
    id
    name

    Functions

    fromBytes
    toBytes