Module function reference

ping

A reference entry for ping

Module function · Network

ping(string ip[, number timeout]) ⇒ boolean

Checks whether an IP address is reachable. The optional timeout is specified in milliseconds and defaults to 2000.

Example

YASS
if Network::ping("192.168.1.1", 1000)
  print("Device is reachable")
end if

Notes