Uplink command to get the Lorawan related state and statistic.
import * as getLorawanState from 'jooby-codec/obis-observer/commands/uplink/getLorawanState.js';// response to getLorawanStateconst bytes = [0x08, 0x01, 0xc1, 0x05, 0x06, 0x00, 0x00, 0x00];// decoded payloadconst parameters = getLorawanState.fromBytes(bytes);console.log(parameters);// output:{ requestId: 8, downlinkQuality: 1, rssi: 193, snr: 5, deviceMargin: 6, gateMargin: 0, resetFlag: 0, senderCollision: 0} Copy
import * as getLorawanState from 'jooby-codec/obis-observer/commands/uplink/getLorawanState.js';// response to getLorawanStateconst bytes = [0x08, 0x01, 0xc1, 0x05, 0x06, 0x00, 0x00, 0x00];// decoded payloadconst 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
Uplink command to get the Lorawan related state and statistic.
Example: create command instance from command body hex dump
Command format documentation