Hi,
I enable built-in LoRa Mode: Network Server
(RAK7258) with Payload Format: CayenneLPP
.
Built-in LoRa Network Server supports integration to the user’s application server through MQTT protocol.
RAK7258 is the broker
MQTT.fx is the subscriber
EndDevice (RAK7205) is the producer, and publish:
Battery Voltage = 4.213 V
BME680 sensor data:
Humidity:30.923 %RH
Temperature:25.42 degree
Pressure:971.32 hPa
Gas_resistance: 11028 ohms
LIS3DH sensor data:ACC_X: 6mg, ACC_Y: -23mg, ACC_Z: -1024mg
The message is in JSON
format.
{ "applicationID" : "1", "applicationName" : "myApp", "devEUI" : "60c5a8fffexxxxxx", "deviceName" : "MyDevice", "timestamp" : 1614723166, "fCnt" : 0, "fPort" : 8, "data" : "CAIBpQdoPQZzJfECZwD+BAIETgNxAAb/6fwA", "data_encode" : "base64", "object" : { "analogInput" : 11.02, "humidity" : 30.5, "barometer" : 971.3, "temperature" : 25.4, "accelerometer" : { "x" : 0.006, "y" : -0.023, "z" : -1.024 } }, "adr" : true, "rxInfo" : [ { "gatewayID" : "60c5a8fffe766339", "loRaSNR" : 11.3, "rssi" : -46, "location" : { "latitude" : 0.0, "longitude" : 0.0, "altitude" : 0 } } ], "txInfo" : { "frequency" : 867700000, "dr" : 0 } }
The set Payload Format: CayenneLPP
make the object section:
"object" : { "analogInput" : 11.02, "humidity" : 30.5, "barometer" : 971.3, "temperature" : 25.4, "accelerometer" : { "x" : 0.006, "y" : -0.023, "z" : -1.024 } },
but:
- where is the battery voltage?
Gas_resistance: 11028 ohms
->
analogInput=11.02
why ?
I can set the right object
conversion values?
thx
cm