sdcandy wrote on Friday, May 24, 2019:
I have a system where the network settings i.e. whether to use DHCP or static IP address details are stored in non-volatile memory and are read before FreeRTOS_IPInit()
is called. When the network comes up vApplicationIPNetworkEventHook()
takes care of starting a web server and a couple of other network services each as a separate FreeRTOS task.
The network settings can be changed through the web interface. At the moment it is writing the new values to the non-volatile storage and then requires a reboot of the device. Is there a more elegant way of achieving the restart of the network interface and related services without the full reboot?
If I call xSendEventToIPTask(eNetworkDownEvent)
then I can use that to shut everything down cleanly but what do I use to force the network to come back up or will it just happen anyway? When it does come back up will it go far enough back in the initialisation process to perform the DHCP negotiation if it is switched from static to dynamic addressing (for example).
-Andy.