Hi all,
I'm experiencing problems when trying to apply a static ip. The device is configured from start up to poll an ip from a DHCP server (by ipcfg_bind_dhcp). Changing to a fixed IP (using ipcfg_unbind and ipcfg_bind_staticip) is no problem if a server exists in the network however otherwise both functions return IPCFG_BUSY.
When going deeper into the code it looks like that the request_semaphore is not freed and polling for it fails.
What am I doing wrong?
Many thanks in advance
Ren
Hi Ren,
Have you tried to use ipcfg_bind_dhcp_wait() instead? Make sure that the second parameter is TRUE. This will cause to try auto-ip in case the DHCP request fails.
Hope this helps,
Regards,
Garabo