Specifications
Shared Variables
101
AMX InspiredSignage XPress Programming Guide
Sample Code
Updating a variable
using PHP
function send_update( $host, $port, $name, $value ) {
$s=fsockopen( $host, $port );
fwrite( $s, “UPDATE \”$name\" \"$value\"\r\n" );
fclose( $s );
}
Note: this simplified example does not handle the escaping of control characters.
Sending an event
using PHP
Sending a keydown event for the key 'V' with control modifier pressed.
function send_copy_key( $host, $port ) {
$s=fsockopen( $host, $port );
fwrite( $s, “EVENT \”keydown\” \”Ctrl+V\”\r\n” );
fclose( $s );
}
Updating a variable
using telnet
telnet 192.168.1.10 1234
Trying 192.168.1.10...
Connected to 192.168.1.10
Escape character is '^]'.
UPDATE “menu” “P1”
^]
telnet> quit
Connection closed.
Updating a variable
using HTTP
http://192.168.1.10:1234/update?menu=P1