Created question in FIWARE Q/A platform on 19-11-2019 at 11:11
Please, ANSWER this question AT https://stackoverflow.com/questions/58931498/how-to-publish-datauplink-measures-supports-mqtt-protocol-with-mosquitto-publi
Question:
How to publish data(Uplink Measures) supports MQTT protocol with Mosquitto publisher client to The Things Network(TTN) as broker
Description:
Problem: I am unable to publish uplink measures to TTN(The Things Network,MQTT Broker) through MQTT Publisher Client. Follow these steps...
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 '
{"port":1,"payload_raw":"AWcAuw=="}
' -d
MQTT command to subscribe uplink measure:
mosquitto_sub -h eu.thethings.network -p 1883 -u applicationid -P ttn-account-v2.x2Q20I2hDo1XXXXXXXXXXXXXXXXX -t applicationid/devices/deviceid/up
2019-11-19 15:06|CREATED monitor | # answers= 1, accepted answer= True