That's probably the only viable route.
You could of course fork the library and do the adjustments yourself - and maybe even contribute the enhanced version to the public library repo - but having the original adapted would be best.
I've not checked the library, but I'd no limit the focus to client.connect() but check for potential blockages everywhere.
Hi, I’m having problems with the https://github.com/hirotakaster/MQTT library. my application does not connect with my broker. Can you tell me if client.connect (“myParticle”); It’s working correctly ? I’m using the mqtttest.ino example. Thank you.
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:
In this case even if your broker is not available the code will not block