Need help understanding libmqtt code
Hello,
I am still learning mqtt, and while going through the source code for libmqtt, I am still unable to figure out some basics :
1. I expected mosquitto_connect to make the network connection to the broker - but it is not doing so. The mosquitto_
2. Due to some issues I wanted mosquitto_loop not to be in an infinite loop. I called mosquitto_loop once and then scheduled it in a timertask after 5 seconds. mosquitto_
3. What exactly is the code I should change if I want to know the network failure instantaneously - currently the mosquitto_
I am trying to make this work on iOS. If someone has already done it, please share your experience. My basic problem is that the mosquitto_loop is continually running, and returning MOSQ_ERR_SUCCESS everytime, even if I go out of network.
Thanks!!
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- mosquitto Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: