Details
-
Type: Monitor
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
HD-Enabler:IoT Broker
Description
Created question in FIWARE Q/A platform on 06-02-2018 at 09:02
Please, ANSWER this question AT https://stackoverflow.com/questions/48638932/send-lora-measures-to-fiware-iot-agent-via-mqtt
Question:
Send LoRa measures to Fiware IOT agent via MQTT
Description:
I have LoRa sensors which send measures with Cayenne LPP format payload.
My Gateway(LOrank8v1) catches these packets and converts them to UDP.
In the gateway there is a service(lora-gateway-bridge) which converts the packets from UDP to TCP/MQTT.
Then the MQTT packets are published to the mosquitto MQTT broker in the cloud.
Then i run lora-server and lora-app-server services in order to decrypt,decode and deduplicate the packets.
Then i publish the decrypted information to the MQTT broker again.
Here is an example of a publication after all these operations:
application/1/node/0000000000000000/rx
{
"applicationID":"1",
"applicationName":"Temperature-Humidity",
"deviceName":"Temperature-Humidity",
"devEUI":"0000000000000 000",
"rxInfo":[
],
"txInfo": {
"frequency":8685 00000,
"dataRate":
,
"adr":false,
"codeRate":"4/5"
},
"fCnt":2,
"fPort":1,
"data":"AGcAxQFojA==",
"object": {
"temperatureSensor":
,
"humiditySensor":
}
}
Now i want to use Fiware's JSON/MQTT IOT agent to convert MQTT to NGSI in order to publish data to the Context Broker.
The data should be publised like this to be readable :
$ mosquitto_pub -h $HOST_IOTAGENT_MQTT -u theUser -P thePassword -t /myapikey/mydevicemqtt/attrs -m '
{ "t": 19,7, "h": 70}'
Has anyone the same problem?
Should i make a JSON parser and republish the data to another format into the MQTT Broker?
How could i deal with this problem?
Activity
Field | Original Value | New Value |
---|---|---|
Component/s | FIWARE-TECH-HELP [ 10278 ] |
Assignee | Jose Gato Luis [ josegato ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | Answered [ 10104 ] |
Resolution | Done [ 10000 ] | |
Status | Answered [ 10104 ] | Closed [ 6 ] |
Summary | [fiware-stackoverflow] Send LoRa measures to Fiware IOT agent via MQTT | FIWARE.Question.Tech.Send LoRa measures to Fiware IOT agent via MQTT. |
HD-Enabler | IoT Broker [ 10885 ] |
Fix Version/s | 2021 [ 12600 ] |
Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
---|---|---|---|---|---|---|---|---|---|
|
2h 59m | 1 | Backlog Manager | 06/Feb/18 3:05 PM | |||||
|
3h | 1 | Backlog Manager | 06/Feb/18 6:05 PM | |||||
|
2d 58m | 1 | Jose Gato Luis | 08/Feb/18 7:04 PM |
2018-02-06 12:05|CREATED monitor | # answers= 0, accepted answer= False