leandropg wrote on June 12, 2019:
Hi,
I am developing an C application in a Microchip PIC32 using the Curiosity PIC32MZEF Board with AWS FreeRTOS. I connected in the mikro BUS Socket 2 the MikroElectronika WiFi 7 click Board for WiFi connection and the PIC32 LAN8720 PHY daughter board for Ethernet connection.
WiFi Module
[https://www.mikroe.com/wifi-7-click]
Ethernet Module
[https://www.microchip.com/DevelopmentTools/ProductDetails/ac320004-3]
When I compiled the default AWS FreeRTOS with the Microchip Curiosity PIC32MZ EF, the Internet connection is handle by the WiFi Module and it works fine. After, I need test the Ethernet Module, so I found in the AWS forums that is necessary added the level macro PIC32_USE_ETHERNET in the project properties and the Ethernet works fine.
https://forums.aws.amazon.com/message.jspa?messageID=853582
Now, my application need use both the Wifi OR Ethernet connection, selecting the network interface by code, but I don’t find how make it.
I need first to detect if exists Internet connection in the Ethernet interface. If doesn’t has internet I need selected the Wifi interface. If the Wifi interface doesn’t has internet come back the Ethernet connection and so.
Thanks for your help.
Edited by: leandropg on Jun 12, 2019 1:44 PM