NetworkUtils Object
NetworkUtils Object
The package name of this class is hubitat.helper. So, to use in an app or driver, you would reference it with hubitat.helper.NetworkUtils.
Methods
ping
Performs an ICMP ping and returns the results.
Signature
PingData ping(String IPAddress)PingData ping(String IPAddress, Integer count)
Parameters
IPAddress- The IP Address to pingcount- The number of ping requests to send (defaults to 3, maximum is 5)
Returns
PingData- An object containing the following properties:Double rttAvg- Average Round Trip TimeDouble rttMin- Minimum Round Trip TimeDouble rttMax- Maximum Round Trip TimeInteger packetsTransmitted- Ping requests sentInteger packetsReceived- Responses receivedInteger packetLoss- Responses lost