However, I have a use case when I need to determine at runtime if I use WiFi or Ethernet
The problem is that as soon as I call WiFi.begin() method or any other method like WiFi.mode() the following error is raised:
_E (2041) wifi:invalid magic number 7fffffff, call WIFI_INIT_CONFIG_DEFAULT to init config
[ 2019][E][WiFiGeneric.cpp:680] wifiLowLevelInit(): esp_wifiinit 258
[ 2022][E][WiFiSTA.cpp:227] begin(): STA enable failed!
This happens even if there is absolutely no code used from the library, only making the inlcude would trigger the issue. It looks like it break the WiFi stck somehow,
Any idea what to do to make this avoiding breaking WiFi ?
Hello, I hope this library is still active
when using the library on ESP32 having a W5500 module (using adapated version here: https://github.com/andrew-susanto/Arduino-Ethernet-Icmp) it works fine.
However, I have a use case when I need to determine at runtime if I use WiFi or Ethernet The problem is that as soon as I call WiFi.begin() method or any other method like WiFi.mode() the following error is raised:
_E (2041) wifi:invalid magic number 7fffffff, call WIFI_INIT_CONFIG_DEFAULT to init config [ 2019][E][WiFiGeneric.cpp:680] wifiLowLevelInit(): esp_wifiinit 258 [ 2022][E][WiFiSTA.cpp:227] begin(): STA enable failed!
This happens even if there is absolutely no code used from the library, only making the inlcude would trigger the issue. It looks like it break the WiFi stck somehow,
Any idea what to do to make this avoiding breaking WiFi ?
Thnaks for your help