EthernetWifi Library

I have forked the EthernetCellularRK library to use WiFi as the backup instead of Ethernet.

I would like to add some further options for operation.

  1. No Ethernet adaptor - device permanently operates on WiFi without rechecking every so often.
  2. Swapping connection preference (WiFi, then ethernet).
  3. As 1. but with the added requirement to operate unconnected until switched by a user to be connected. The Local or Connected switching would be implemented via BLE control or could be controlled through an external RTC alarm or timer that switched between the 2 modes. This covers a user scenario where 4G WiFi hotspots are occasionally setup to allow devices to upload event logs and key data.

Many thanks in advance for any ideas of how best to achieve these.

The library modification should probably work, and should be straightforward.

Is there a reason you can't just let Device OS do it automatically using Automatic Connection Management? That's kind of why the feature exists. It doesn't have exactly the feature set you mentioned, but it should work for switching between Ethernet and Wi-Fi.