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.

CC3100 API to check the acquired ip address

Other Parts Discussed in Thread: CC3100

Hi,

I can run the example code of CC3100 on top of 5969 launch pad, CC3100 can connect to my AP (which is my home router).

My question is, what is the API to get the return acquired ip address assigned by the AP (router)? I tried to check, but I could not find it in example code.

Thanks

Handi

  • Hi,

    Please see SimpleLinkNetAppEventHandler(SlNetAppEvent_t *pNetAppEvent) and event SL_NETAPP_IPV4_IPACQUIRED_EVENT:

    unsigned long gIPv4Address = pNetAppEvent->EventData.ipAcquiredV4.ip;
    unsigned long gIPv4Gateway = pNetAppEvent->EventData.ipAcquiredV4.gateway;
    unsigned long gIPv4DNS        = pNetAppEvent->EventData.ipAcquiredV4.dns;


    Jan