Linkit 7688 check network connection

Hello everyone,
I am doing with Linkit smart 7688.
How can I check the connection of it?
For example, My linkit 7688 is connecting to the host.
And then the network has a problem, and it has no internet.
I need to receive a notice from linkit in this case.
How can I do it?
Thank you all so much.

I think you can try to ping any website like and read the response right