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.

how to get cc3000 connection status

Hello,

I want to know that, can I get connection status on CC3000? I got connection status for connection to AP but I couldn't do that for internet connection status.

Thanks.

Turan

  • Hi Turan,

    Do you mean you want to know if you've got a DHCP lease, i.e. You've got an IP address?

    If so, the method you want would be `netapp_ipconfig`in netapp.h. But this will only tell you if you've been given an IP address by your router/ap/gateway (assuming your network is DHCP configured).

    If you want to know if you're ACTUALLY connected to the internet, you will have to send some data to a known server and see if you get a response. I would suggest you do a ping. To do this, take a look at the method `netapp_ping_send` in netapp.h

    Your CC3000 won't know if its really connected to the internet or not - nor would any other network connected device. You have to contact a server on the internet (open a socket, or ping) in order to validate that you have a good connection.

    Hope that helps.

    Josh
  • Hi Turan,

    There are no APIs or events to provide you with the internet connection status. You would have to implement this logic on the host.

    Regards,
    Raghavendra