jooby-codec
    Preparing search index...

    Uplink command to get the Lorawan related state and statistic.

    import * as getLorawanState from 'jooby-codec/obis-observer/commands/uplink/getLorawanState.js';

    // response to getLorawanState
    const bytes = [0x08, 0x01, 0xc1, 0x05, 0x06, 0x00, 0x00, 0x00];

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

    console.log(parameters);
    // output:
    {
    requestId: 8,
    downlinkQuality: 1,
    rssi: 193,
    snr: 5,
    deviceMargin: 6,
    gateMargin: 0,
    resetFlag: 0,
    senderCollision: 0
    }

    Command format documentation

    Variables

    examples
    headerSize
    id
    name

    Functions

    fromBytes
    toBytes