For my project i am using Omega2+ where i need to have Ethernet and WIFI both connectivity, but ethernet as primary.
I had used ethernet Jack, soldered on general dot matrix pcb with all resistor and capacitor as described in ethernet expansion schematic. I tested ethernet, its working good.
My objective is to run python MQTT publish and subscribe on available network (WIFI-Ethernet) at any point. Where Ethernet need to give 1st preference if both Ethernet and WIFI are available.
Problem i am facing is auto switching between network( Ethernet - WIFI ) not happening. There are different cases which i came across:
- If i keep Ethernet during boot, then omega gets IP through DHCP form router and MQTT working fine.
- Same if keep only WIFI, omega gets IP and MQTT works fine.
- But if omega booted with active wifi network , and then if i had connected ethernet and disconnected WIFI by turning off SSID. MQTT does not work, even though omega got IP with ethernet.
Kindly explain how i can configure network on Omega2 so that both Ethenet and WIFI should work with auto switching between available active network (ethernet and wifi). And giving ethernet as primary network