jooby-codec
    Preparing search index...

    Namespace getCriticalEvent

    Uplink command to get critical events.

    The corresponding downlink command: getCriticalEvent.

    import * as getCriticalEvent from 'jooby-codec/mtx3/commands/uplink/getCriticalEvent.js';

    // response to getCriticalEvent downlink command
    const bytes = [0x01, 0x01, 0xe9, 0x03, 0x0c, 0x0a, 0x16, 0x21, 0x07];

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

    console.log(parameters);
    // output:
    {
    event: 1,
    name: 'MAGNETIC_ON',
    index: 1,
    date: {
    year: 233,
    month: 3,
    date: 12,
    hours: 10,
    minutes: 22,
    seconds: 33
    },
    count: 7
    }

    Command format documentation

    Variables

    accessLevel
    examples
    headerSize
    id
    isLoraOnly
    maxSize
    name

    Functions

    fromBytes
    toBytes