blocks the program for few seconds( atleast 5seconds in my program) and then says mqtt connect failed, if the ESP is CONNECTED to WIFI but there is NO INTERNET.
NOTE: MQTT broker is on my server.
Any workaround to reduce this time ? or make it non blocking ?
Hi @knolleary , The following function
pubsubclient.connect(clientId.c_str(),mqtt_username,mqtt_password);
blocks the program for few seconds( atleast 5seconds in my program) and then says mqtt connect failed, if the ESP is CONNECTED to WIFI but there is NO INTERNET.
NOTE: MQTT broker is on my server. Any workaround to reduce this time ? or make it non blocking ?