Part Number: TM4C1294NCZAD
Hello,
I want to be able to remove my default configuration of DHCP and switch to static IP at runtime.
However, I am running into an issue where when I call CfgRemoveEntry() to remove DHCP and CfgAddEntry() to add static, and then try to connect over a socket connection later, NDK_connect() returns -1 with an error code ENOBUFS (55).
When I comment out CfgRemoveEntry() and simply call CfgAddEntry() for the static IP and gateway, then NDK_connect() works just fine. So the problem seems to lie in how I'm removing the DHCP configuration.
So, two questions:
1) Why is removing the DHCP configuration entry causing an ENOBUFS error on NDK_connect()?
2) Are there downsides to leaving the DHCP configuration entry as is and simply adding the static configuration functionality as necessary?
Thank you.

