using getAddrInfo

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

I want to obtain network address information. Linux has its own getAddrInfo() method. I am not sure if netdb.h is in the compilation path for WICED SDK. is there an alternative?

0 Likes
3 Replies
Anonymous
Not applicable

Does wiced_hostname_lookup() work for you?

Or LwIP supports getaddrinfo() as lwip_getaddrinfo().

0 Likes
Anonymous
Not applicable

Sure, That seems a close function to linux's getaddrinfo. Can you tell me if I need to add this library(LWIP) explicitly in my project? if so, which directory? or an include of header would be ok, if this library is present in WICED SDK?

0 Likes
Anonymous
Not applicable

wiced_hostname_lookup() is prepared as a part of normal WICED API.

So you can call it in your application.

LwIP is not used as default.

Adding -FreeRTOS-LwIP like below builds your application with LwIP.

make snip.scan-BCM943362WCD4--FreeRTOS-LwIP

Please refer <WICED-SDK>/Makefile for detail

0 Likes