How can I switch DHCP on/off in runtime

If you are using ipconfigUSE_DHCP_HOOK, the application has to define: xApplicationDHCPHook or xApplicationDHCPHook_Multi depending on ipconfigIPv4_BACKWARD_COMPATIBLE.

Example