ezeio2:scriptref: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); 
  • ezeio2/scriptref/ping.txt
  • Last modified: 2026-01-08 01:13
  • by andreh