WiFi and Ethernet connection issues

This page summarizes the projects mentioned and recommended in the original post on /r/esp32

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • ESP32-POE

    ESP32 IoT development board with 100Mb Ethernet and 802.3 Power Over Ethernet (POE)

  • Hello everyone, I am using an ESP32-PoE-ISO from olimex for my project. What I'd like to do is connect to internet over ethernet, and, if the connection il lost or the cable detached move over to WiFi. It is quite easy to connect over both WiFi and ethernet (https://github.com/OLIMEX/ESP32-POE/blob/master/SOFTWARE/ARDUINO/ESP32_PoE_Ethernet_WIFI_test/ESP32_PoE_Ethernet_WIFI_test.ino) but I can't seem to be able to connect to WiFi only when the ethernet connection is lost. What I did is create a function connectWIFI that is called in the WiFi event handler whenever the status is "SYSTEM_EVENT_ETH_DISCONNECTED" or "SYSTEM_EVENT_ETH_STOP". I am sure the code inside connectWIFI is correct since I took it from setup() in the above mentioned example, but it won't connect. So if I connect to both WiFi and ethernet ""at the same time" it works, I get a double connection, but if I try to connect to WiFi only once I lose Ethernet connection WiFi doesn't connect... I have tried many other ways but none worked. Do you guys have any suggestion? Also, when I boot for the first time how can I check if the ethernet cable is plugged in? So that I could directly jump to WiFi instead of waiting for ethernet to be disconnected. Thanks in advance!

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts