Hello i need to have the network stack be able to change to either a static ip,Dhcp client,or Dhcp server,iam using cfg functions to switch the network stack configs.Iam having some trouble making the config changes be loaded into the network stack it seems to stop the network stack when i make changes to the config during runtime.Do you have to restart the ndkTask everytime you load a different cfg?Would i need to call CfgExecute?My network stack does work without changing the cfg at runtime. My psuedo code is below thanks
//Tasks.c void mainTask() { staticIpCfg = CfgNew(); . . . dhcpServerCfg = CfgNew(); //Load default values CfgAddEntry(staticIpCfg,...); CfgAddEntry(dhcpServerCfg,...); CfgSetDefault(staticIpCfg); do { if(change to dhcp server == true) CfgSetDefault(dhcpServerCfg); CfgExecute(dhcpServerCfg,1); } while(true); }