You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#include<Arduino.h>voidsetup() {
}
voidloop() {
WiFiClient client;
IPAddress ipAddr;
ipAddr.fromString(IPADDR);
Serial.println("Trying to log");
if (client.connect(ipAddr, PORT)) {
client.print(msg);
Serial.println("Logged");
}
// Have some other time critical stuff here. The connect takes too long if the ipaddress doesn't exist.
}
The text was updated successfully, but these errors were encountered:
Basic Infos
Hardware
Hardware: NodeMCUv2, ESP-12E
Core Version: ?
Description
The WifiClient connect function hang the program
Settings in IDE
Doesn't matter
Sketch
The text was updated successfully, but these errors were encountered: