Hi Oscar,
This is a scenario that we haven't tested already. Now, based on your info and what we have in our examples you may need to call another couple of functions before trying the DHCP.
Maybe not needed but call the function iwcfg_set_mode() which sets the mode for Wifi device. The function iwcfg_commit() will commit the requested change. It also associates with the requested AP with SSID set by iwcfg_set_essid.
In addition, also try to set a static IP address with the funciton ipcfg_bind_staticip(). This will help us to discard any connectivity issue with the joining on the WiFi net.
I hope this is useful.
Have a great day,
Garabo
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------