Priority interface while using Ethernet and WiFi in STA mode together
Posted: Fri Mar 22, 2019 11:15 am
Hello,
I am initializing Ethernet and WiFi in STA mode from main, then ESP32 is getting connected to cloud once both Ethernet and WiFi STA gets IP. I checked by disconnecting Ethernet and WiFi one by one to check which interface is being used for cloud connection, and I found that there is no effect of disconnecting Ethernet cable, only disconnecting WiFi router disconnects cloud from ESP32.
So my concern is, If AP is connected to ESP32, Ethernet connection will not come into picture. ESP32 will always use WiFi interface on priority than Ethernet. Is it expected behavior.?
Thanks.
I am initializing Ethernet and WiFi in STA mode from main, then ESP32 is getting connected to cloud once both Ethernet and WiFi STA gets IP. I checked by disconnecting Ethernet and WiFi one by one to check which interface is being used for cloud connection, and I found that there is no effect of disconnecting Ethernet cable, only disconnecting WiFi router disconnects cloud from ESP32.
So my concern is, If AP is connected to ESP32, Ethernet connection will not come into picture. ESP32 will always use WiFi interface on priority than Ethernet. Is it expected behavior.?
Thanks.