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
Blynk library version: ?? How do we find ??
IDE: Arduino
IDE version: 2.3.0
Board type: WT32-ETH01 v1.4
Additional modules: N/A
Scenario, steps to reproduce
Connect to Blynk using Ethernet on WT32-ETH01 v1.4
Expected Result
Not crashing
Actual Result
Crashing after Blynk.begin(AUTH)
Going to Blynk begin
[2683] Getting IP...
8��BX�t(Uզոlƚ�mթ�
Full code
#define BLYNK_PRINT Serial
#define BLYNK_TEMPLATE_ID "REPLACE"
#define BLYNK_TEMPLATE_NAME "Weather Station WT32 ESP01"
#define BLYNK_AUTH_TOKEN "REPLACE"
#include <ETH.h>
#include <SPI.h>
#include <Ethernet.h>
#include <BlynkSimpleEthernet.h>
#include "Arduino.h"
#include <Wire.h>
char auth[] = BLYNK_AUTH_TOKEN; // replace this with your auth token
char ssid[] = ""; // replace this with your wifi name (SSID)
char pass[] = ""; // replace this with your wifi password
BlynkTimer timer;
static bool eth_connected = false;
void WiFiEvent(WiFiEvent_t event)
{
Serial.println("Wifi Event");
switch (event) {
case ARDUINO_EVENT_ETH_START:
Serial.println("ETH Started");
//set eth hostname here
ETH.setHostname("esp32-ethernet");
break;
case ARDUINO_EVENT_ETH_CONNECTED:
Serial.println("ETH Connected");
break;
case ARDUINO_EVENT_ETH_GOT_IP:
Serial.print("ETH MAC: ");
Serial.print(ETH.macAddress());
Serial.print(", IPv4: ");
Serial.print(ETH.localIP());
if (ETH.fullDuplex()) {
Serial.print(", FULL_DUPLEX");
}
Serial.print(", ");
Serial.print(ETH.linkSpeed());
Serial.println("Mbps");
eth_connected = true;
break;
case ARDUINO_EVENT_ETH_DISCONNECTED:
Serial.println("ETH Disconnected");
eth_connected = false;
break;
case ARDUINO_EVENT_ETH_STOP:
Serial.println("ETH Stopped");
eth_connected = false;
break;
default:
break;
}
}
void sendSensor() // function to read sensor values and send them to Blynk
{
// ...
}
void setup()
{
Serial.begin(9600);
WiFi.onEvent(WiFiEvent);
ETH.begin();
Serial.println("Going to Blynk begin");
Blynk.begin(auth);
Serial.println("Blynk ready");
timer.setInterval(15000L, sendSensor); // sendSensor function will run every 1000 milliseconds
}
void loop()
{
if (eth_connected)
{
Blynk.run();
}
timer.run();
}
It just crash in loop
Wifi Event
ETH Started
Wifi Event
ETH Connected
Wifi Event
ETH MAC: B0:A7:32:07:0E:07, IPv4: 192.168.50.34, FULL_DUPLEX, 100Mbps
Going to Blynk begin
[1683] Getting IP...
�
G�oo��6ѩV���u�ա��
Let me know what else I can try and if WT32-ETH01 works on your side. Thanks!
The text was updated successfully, but these errors were encountered:
Blynk library version: ?? How do we find ??
IDE: Arduino
IDE version: 2.3.0
Board type: WT32-ETH01 v1.4
Additional modules: N/A
Scenario, steps to reproduce
Connect to Blynk using Ethernet on WT32-ETH01 v1.4
Expected Result
Not crashing
Actual Result
Crashing after Blynk.begin(AUTH)
Full code
It just crash in loop
Let me know what else I can try and if WT32-ETH01 works on your side. Thanks!
The text was updated successfully, but these errors were encountered: