Hi ,
I want to use paho mqtt c library and run on quectel ec25-e module . How can i compile C example for paho ?
Hello there
The basic steps of the mqtt interface:
- Create an mqtt client object
- Set the options for mqtt connection
- Make mqtt connection
- Subscribe/unsubscribe/publish messages, etc
The paho-mqtt-c library provides two sets of interfaces, synchronous and asynchronous. The synchronous interface uses single thread; the asynchronous interface uses multiple threads. For specific steps, you can refer to the following two connections:
1.Where the library is hosted: https://github.com/eclipse/paho.mqtt.c
2.Library api documentation: https://www.eclipse.org/paho/files/mqttdoc/MQTTClient/html/index.html