Detecting loss of wireless network


I have been working with the MiniCore RCM5600W module, but after a lot of reading of the documentation I have not been able to get an answer to this question.

How can I detect the loss of the wireless network?

I am establishing a connection to our server and after sending some data, I turn off the WiFi router, so the RCM5600W losses the wireless network, but everything seems to be working fine on the program, even after turning on the router again, although obviously it does not send anything to the server anymore.

I am using functions like ifpending and ifstatus, but they do not seem to help on detecting the loss of the wireless network.

How can I do this?


Hi and Welcome to

Does the wireless access point you are connecting to have SSID enabled or disabled?


Thank you very much for your reply.

The access point we are using has the SSID enabled and visible, with WEP security enabled.