jooby-codec
    Preparing search index...

    Namespace getArchiveDays

    Downlink command for requesting the archive of daily data from the pulse counter sensor. If there is no data available in the archive, 0xffffffff will be returned. Due to the limited length of transmitted data from the sensor, not all requested data will be transferred.

    import * as getArchiveDays from 'jooby-codec/analog/commands/downlink/getArchiveDays.js';

    // 1 day counter from 2023.03.10 00:00:00 GMT
    const parameters = {startTime2000: 731721600, days: 1};
    const bytes = getArchiveDays.toBytes(parameters);

    // command binary representation
    console.log(bytes);
    // output:
    [6, 3, 46, 106, 1]

    Command format documentation

    Variables

    examples
    headerSize
    id
    name

    Functions

    fromBytes
    toBytes