#include <WiFi.h>
char ssid[] = "...";
char password[] = "Day272020?";
const uint16_t port = 8999;
const char * host = "81.57.233.143";
void setup()
{
Serial.begin(115200);
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.println("...");
}
Serial.print("WiFi connected with IP: ");
Serial.println(WiFi.localIP());
}
void loop()
{
WiFiClient client;
if (!client.connect(host, port)) {
Serial.println("Connection to host failed");
delay(1000);
return;
}
Serial.println("Connected to server successful!");
client.print("Hello from ESP32!");
Serial.println("Disconnecting...");
client.stop();
delay(10000);
}
and I get the same error with the 2 boards...
ets Jan 8 2013,rst cause:4, boot mode:(3,6)
wdt reset
load 0x4010f000, len 1392, room 16
tail 0
chksum 0xd0
csum 0xd0
v3d128e5c
~ld
I've tried different ports and different computers... nothing changes.