--jpReachability API jpReachability.activate ( sUserToken, sActivationKey ) --Internet connection kNetworkStatus, bConnectionRequired = jpReachability.getNetworkStatusForInternetConnection ( ) bMonitoring = jpReachability.isInternetConnectionMonitoring ( ) jpReachability.startInternetConnectionMonitoring ( ) jpReachability.stopInternetConnectionMonitoring ( ) --Local WiFi kNetworkStatus, bConnectionRequired = jpReachability.getNetworkStatusForLocalWiFi ( ) bMonitoring = jpReachability.isLocalWiFiMonitoring ( ) jpReachability.startLocalWiFiMonitoring ( ) jpReachability.stopLocalWiFiMonitoring ( ) --Remote host kNetworkStatus, bConnectionRequired = jpReachability.getNetworkStatusForRemoteHost ( sHostName ) bMonitoring = jpReachability.isRemoteHostMonitoring ( sHostName ) jpReachability.startRemoteHostMonitoring ( sHostName ) jpReachability.stopRemoteHostMonitoring ( sHostName ) --Constants jpReachability.kNetworkStatusNotReachable jpReachability.kNetworkStatusReachableViaWWAN jpReachability.kNetworkStatusReachableViaWiFi
This plugin allows you to check if the device can access to the internet, through the WiFi or a Wireless Wide Area Network (WWAN) interface such as EDGE or 3G. It also allows you to know if the packets can be sent to a server, specified by its IP address or DNS.