MQTT Library and SEMI_AUTOMATIC

hi,
If you running SYSTEM_THREAD(ENABLED) you have to set 4-th parameter in your client initialization
MQTT client("sample.com", 1883, callback, true);
here from official example:
sys_thread_en

In this case even if your broker is not available the code will not block :stuck_out_tongue_winking_eye:

3 Likes