Skip to content
ezeioDocs
  1. Reference
  2. Script reference
  3. Devices and status

Ping

Sends an ICMP (Ping) to another Ethernet connected device

Description#

Ping( IP1, IP2, IP3, IP4 )
Ping( IP4 )

Send a 32 byte packet to other device and return the roundtrip time in milliseconds

Parameters#

IP1 First IPv4 octet
IP2 Second IPv4 octet
IP3 Third IPv4 octet
IP4 Fourth IPv4 octet

If only one octet is given, it's assumed to be the last octet, and the rest of the address is the same as the ezeio.

Return value#

Returns the roundtrip time in milliseconds, or 0 if there is an error.

Example usage#

   new ms;
   ms = Ping(8, 8, 4, 4);
   PDebug("Ping took %d ms", ms); 

Last updated Jan 8, 2026