ph_sendsocketdata PowerHome formula function
Description
Sends and retrieves data using a socket to a remote IP/ Port.
Syntax
ph_sendsocketdata ( url, port, data )
Argument |
Description |
url
|
String. The IP or hostname of the remote device to communicate with.
|
port
|
Long. The Port of the remote device to communicate with.
|
data
|
String. The data to send via a socket to the remote device.
|
Return value
String. Returns data from the remote device. If an error occurs, it will be in the form: "*ERROR* - XXX"
Usage
Use this funciton to send and receive raw data using sockets.