PiInTheSky / lora-gateway

LoRa gateway to Habitat
96 stars 69 forks source link

Implementation of MQTT Publish #69

Closed g4dpz closed 2 years ago

g4dpz commented 2 years ago

requires the paho-mqtt library to be linked:

https://www.eclipse.org/paho/files/mqttdoc/MQTTClient/html/index.html

https://github.com/eclipse/paho.mqtt.c

Used you pattern of creating a p_thread to do the upload, handing it received messages and mqtt connection details.

I have added example connection attibutes to the gateway-example .txt file