jooby-codec
    Preparing search index...

    Namespace getArchiveDays

    Uplink 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/uplink/getArchiveDays.js';

    // get day values from 2001.03.10
    const bytes = [0xa9, 0x6d, 0x80, 0x00, 0x00, 0xea];

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

    console.log(parameters);
    // output:
    {
    startTime2000: 2678227200,
    dayList: [
    {isMagneticInfluence: true, value: 234}
    ]
    }

    Command format documentation

    Variables

    examples
    headerSize
    id
    name

    Functions

    fromBytes
    toBytes