I use Avnet Starter kit Rev2 board. I followed the Azure IOT sample code provided.
https://github.com/Azure/azure-sphere-samples/tree/master/Samples/AzureIoT
Both Ethernet and wifi network interface is working. I implemented both Eth and wifi network in the same code so that the device can switch between these two network.
But I noticed that switching between network took 2 min 20 seconds. The "AzureTimerEventHandler" restarted when there was no data sending from device to HUB. This took around 2min 20 seconds.
How can I make the device switch its network immediately without waiting for a long time.
Thank you.




