This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
In a related thread, someone asked how to configure static ip addresses using the NDK
The following answer was given
****
In the udpecho.c there is a file called ndk_tirtos.c which configures the stack
In the initIP function you would need to add a new Cfg for CFGTAG_CLIENT where you can configure the static IP allocation
for more details please refer to the C:/ti/simplelink_msp432e4_sdk_2_10_00_17/docs/ndk/NDK_API_Reference.html in the SDK under section 4.3.5
****
The person who started the thread was looking for a snippet of example code which was not provided. I looked into these references above and did not find them as helpful as I would have liked. All of the examples in the SDK seem to use DHCP. I have had a hard time finding an example of InitIP for static IP address configuration. In one of the manuals, there is a nice example of InitIP given for DHCP. I would much appreciate it if someone could provide an example of InitIP for static ip configuration.
Thank you very much Sai. That is most helpful! I integrated the code into our app and it worked on the first try. Sure beats trying to figure this out on one's own muddling through the various documents.
**Attention** This is a public forum