Command network.ping

Learn more about Host integration - Simple HTTP

The command network.ping is used to test connectivity with the host.

Parameters

  1. variablereturn [integer]
    Return of the function:
    • 0: Success
    • -1: Error while connecting to the server
    • -2: Error while sending ping
  2. host [string]
    Hostname or IP address to perform the ping.

Example


In the example above the command network.ping will do a ping on the host and the return will be stored in the variable iReturn that should be converted into stringvariable to be displayed on the display.