Page 1 of 1
ForceReboot Required?
Posted: Wed Mar 30, 2016 9:52 am
by kackle123
I'm trying to go between DHCP and static IP addressing (and back) in my code. Is a ForceReboot() pretty much required as is done within NNDK's udp.cpp?
Re: ForceReboot Required?
Posted: Wed Mar 30, 2016 6:30 pm
by dciliske
Not necessarily. That said, you will want to *MANUALLY* manage your DHCP settings. No calls to GetDHCPIfNecessary. Take a look at the ChangeIP example under 'StandardStack/DHCP/ChangeIP'. This is written for precisely this scenario.
-Dan
Re: ForceReboot Required?
Posted: Thu Mar 31, 2016 2:25 pm
by kackle123
I have looked at that example and I have handled the Start/StopDHCP() manually, but my code constantly crashes now. Perhaps I need to look closer at the timing/order/code location of my IP changes.