Details
-
Type:
Monitor
-
Status: Closed
-
Priority:
Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
HD-Chapter:Unknown
-
HD-Enabler:Unknown
-
HD-Node:Unknown
Description
Created question in FIWARE Q/A platform on 08-11-2019 at 11:11
Please, ANSWER this question AT https://stackoverflow.com/questions/58764816/how-to-send-lorawan-device-data-to-fiware-lorawan-iot-agent-from-postman-or-mqtt
Question:
How to send LoRaWAN device data to FIWARE LoRaWAN IoT Agent from postman or MQTT Publisher client
Description:
I have created an application in Things Network for LoRaWAN. Also registered a device within that application.
1) Already register a service in LoRaWAN IoT Agent and provisioned a device with provider as TTN in LoRaWAN IoT Agent.
2) Created a HTTP integration in Things Network Stack for my IoT Agent.
3) I also received data sent from Things Network Uplink client in my registered IoT agent.
Uplink payload from Things Network
01 67 00 FF
Now i want to send uplink message from postman or MQTT publisher client.
I tried to create a payload for postman i.e. Url : http://MyMachineIP:4061/iot/json?=MyDeviceId&k=APIKEY
JSON PAYLOAD
{
"app_id": "MyApplicationID",
"dev_id": "MyDeviceId",
"hardware_serial": "AAAAAAAAAAAAAAAA",
"payload_raw": "AWcA/w==",
"metadata": {
"gateways": [
]
}
}
but got error Cannot POST /iot/json.
I also tried using MQTT Publisher Client:
1 ) Installed Eclipse Mosquitto providers a CLI to subscribe and to publish
messages.
Start Mosquitto Service. start mosquitto service
MQTT command to publish uplink measure:
mosquitto_pub h eu.thethings.network -p 1883 -u applicationid-P ttn-account
v2.xXXXXXXXXXXXXXXXXXXXXXXXXX -t applicationid/devices/deviceid/up -m
'
' -d
MQTT command to subscribe uplink measure:
mosquitto_sub h eu.thethings.network -p 1883 -u applicationid -P ttn
account-v2.x2Q20IXXXXX
Activity
Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
---|---|---|---|---|---|---|---|---|---|
|
15d | 1 | Backlog Manager | 04/Dec/19 3:06 PM | |||||
|
3h | 1 | Backlog Manager | 04/Dec/19 6:06 PM |