Hello,
I’m currently working on a project. But unfortunately im not able to get even the first setup working. This due some connection issues with blynk clouds. When i just try to use the simple Blynk.begin() function is get an error that the DNS of blynk-cloud.com cant be resolved. When i ping this site i get no response. I then looked around at this forum and found that there’s is a newer, more used server. blynk.cloud . When i ping this i get an IPaddress, which i now use in the example below. Unfortunately i now get a different error which i haven’t been able to resolve yet. Error is as following:
437756][E][WiFiClient.cpp:268] connect(): socket error on fd 48, errno: 104, “Connection reset by peer”
I hope someone can help me.
platform = espressif32
board = esp32dev
framework = arduino
lib_deps = blynkkk/Blynk@^1.1.0
IPAddress BlynkServer(46, 101, 217, 214);
//==============================================================================
//----------------------------- Function prototypes ----------------------------
//==============================================================================
void setup_blynk()
{
WiFi.mode(WIFI_STA);
WiFi.begin(SSID, PASS);
while (WiFi.status() != WL_CONNECTED)
{
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.println("WiFi connection Successful");
Serial.print("The IP Address of ESP8266 Module is: ");
Serial.print(WiFi.localIP()); // Print the IP address
Blynk.config(BLYNK_AUTH_TOKEN, BlynkServer, 8442);
// Blynk.config(BLYNK_AUTH_TOKEN);
Blynk.connect();
}
void setup()
{
Serial.begin(115200);
setup_blynk();
// Blynk.begin(BLYNK_AUTH_TOKEN, SSID, PASS, BlynkServer, 80);
}
void loop()
{
Blynk.run();
}