Skip to content

runtime error: invalid magic number when using WiFi and Ethernet  #22

@infrafast

Description

@infrafast

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_wifi_init 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 <EthernetICMP.h> 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions