mosquitto
mosquitto copied to clipboard
OnConnect() Callback does not execute using mosquitto in C program
The following code works perfectly in Raspberry Pi but not in Windows 10. However, when "mosquitto_loop_start" function is changed to "mosquitto_loop_forever" function it works, but it's not convenient for me. Is there someone who can help me to deal with this problem?
I thank you in advance
I'm afraid the current 2.0.x mosquitto versions provided by the project for Windows don't have thread support compiled in, which means mosquitto_loop_start() doesn't work. The 2.1 release will have thread support again, so these functions will start working for you then.