How to Check the Network Connection Status of Wireless Devices