jooby-codec
    Preparing search index...

    Namespace getArchiveHoursMc

    Command to request hour pulse counter's values from device archive.

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

    // hour pulse counter and 1 hour diff for 1 channel from 2023.12.23 12:00:00 GMT
    const parameters = {startTime2000: 756648000, hours: 2, channelList: [1]};
    const bytes = getArchiveHoursMc.toBytes(parameters);

    // command binary representation
    console.log(bytes);
    // output:
    [26, 4, 47, 151, 44, 1]

    Command format documentation

    Variables

    examples
    headerSize
    id
    name

    Functions

    fromBytes
    toBytes