Uplink command to get the LoRaWAN information, like device EUI, application EUI and activation method.
import * as getLorawanInfo from 'jooby-codec/obis-observer/commands/uplink/getLorawanInfo.js';// response to getLorawanInfoconst bytes = [ 0x08, 0x00, 0x1a, 0x79, 0x88, 0x16, 0xaa, 0x55, 0x61, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x02, 0x01];// decoded payloadconst parameters = getLorawanInfo.fromBytes(bytes);console.log(parameters);// output:{ requestId: 8, deviceEUI: '00 1a 79 88 16 aa 55 61', applicationEUI: '00 11 22 33 44 55 66 77', deviceClass: 2 activationMethod: 1} Copy
import * as getLorawanInfo from 'jooby-codec/obis-observer/commands/uplink/getLorawanInfo.js';// response to getLorawanInfoconst bytes = [ 0x08, 0x00, 0x1a, 0x79, 0x88, 0x16, 0xaa, 0x55, 0x61, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x02, 0x01];// decoded payloadconst parameters = getLorawanInfo.fromBytes(bytes);console.log(parameters);// output:{ requestId: 8, deviceEUI: '00 1a 79 88 16 aa 55 61', applicationEUI: '00 11 22 33 44 55 66 77', deviceClass: 2 activationMethod: 1}
Command format documentation
Uplink command to get the LoRaWAN information, like device EUI, application EUI and activation method.
Example: create command instance from command body hex dump
Command format documentation