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.
}