Uplink command to get the information about observer, like name, software and hardware version.
import * as getObserverInfo from 'jooby-codec/obis-observer/commands/uplink/getObserverInfo.js';// response to getObserverInfo with device name "Jooby Electra RM LoraWan 1D485 EU"const bytes = [ 0x07, 0x00, 0x01, 0x00, 0x01, 0x01, 0x01, 0x21, 0x4a, 0x6f, 0x6f, 0x62, 0x79, 0x20, 0x45, 0x6c, 0x65, 0x63, 0x74, 0x72, 0x61, 0x20, 0x52, 0x4d, 0x20, 0x4c, 0x6f, 0x72, 0x61, 0x57, 0x61, 0x6e, 0x20, 0x31, 0x44, 0x34, 0x38, 0x35, 0x20, 0x45, 0x55];// decoded payloadconst parameters = getObserverInfo.fromBytes(bytes);console.log(parameters);// output:{ requestId: 7, softwareVersion: { major: 0, minor: 1 }, protocolVersion: { major: 0, minor: 1 }, hardwareVersion: { major: 1, minor: 1 }, deviceName: 'Jooby Electra RM LoraWan 1D485 EU'} Copy
import * as getObserverInfo from 'jooby-codec/obis-observer/commands/uplink/getObserverInfo.js';// response to getObserverInfo with device name "Jooby Electra RM LoraWan 1D485 EU"const bytes = [ 0x07, 0x00, 0x01, 0x00, 0x01, 0x01, 0x01, 0x21, 0x4a, 0x6f, 0x6f, 0x62, 0x79, 0x20, 0x45, 0x6c, 0x65, 0x63, 0x74, 0x72, 0x61, 0x20, 0x52, 0x4d, 0x20, 0x4c, 0x6f, 0x72, 0x61, 0x57, 0x61, 0x6e, 0x20, 0x31, 0x44, 0x34, 0x38, 0x35, 0x20, 0x45, 0x55];// decoded payloadconst parameters = getObserverInfo.fromBytes(bytes);console.log(parameters);// output:{ requestId: 7, softwareVersion: { major: 0, minor: 1 }, protocolVersion: { major: 0, minor: 1 }, hardwareVersion: { major: 1, minor: 1 }, deviceName: 'Jooby Electra RM LoraWan 1D485 EU'}
Command format documentation
Uplink command to get the information about observer, like name, software and hardware version.
Example: create command instance from command body hex dump
Command format documentation