jooby-codec
    Preparing search index...

    Namespace getEventsCounters

    Uplink command to get events counters.

    The corresponding downlink command: getEventsCounters.

    Supported in MTX1 and MTX3 devices.

    import * as getEventsCounters from 'jooby-codec/mtx1/commands/uplink/getEventsCounters.js';

    // response to getEventsCounters downlink command
    const bytes = [0x00, 0x48, 0x00, 0x42, 0x01, 0x56, 0x00, 0x4d, 0x00, 0x22, 0x00, 0x16, 0x01, 0x2a];

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

    console.log(parameters);
    // output:
    {
    accessClosed: 22,
    accessError: 34,
    localParametersChange: 342,
    remoteParametersChange: 77,
    powerOff: 66,
    restart: 72,
    setClock: 298
    }

    Command format documentation

    Variables

    accessLevel
    examples
    headerSize
    id
    isLoraOnly
    maxSize
    name

    Functions

    fromBytes
    toBytes