83
W&T
Controlling the Web-IO with TCP/UDP Sockets
Subject to errors and modifications:
Communication between Web-IO and the application
In contrast to TCP, there is no communication between the Web-
IO and the other communications partner when communicating via
UDP protocol. Data are exchanged using datagrams.
Normal communication takes place in polling mode. This means
the application uses command strings to request the desired
values and set the outputs.
The Web-IO always responds to a poll by returning the IP address
and port of the requesting network station.
Example 1
: Query the status of Input 3, where there is a signal of
+12 V present. No administrator password was asigned for the
Web-IO
The application sends the following string to the Web-IO:
GET
/input3?PW=&
The Web-IO responds as follows:
input3;ON
Example 2
: Set outputs 3,4,7,9. In binary this is 0000 0010 1001
1000 , which corresponds to 0298 hex.
The administrator password for the Web-IO is: „blue“
The application sends the following string to the Web-IO:
GET
/outputaccess?PW=blue&State=0298&
The Web-IO responds as follows:
output;0298
1
The Web-IO works with null-terminated strings!
This means that everything the Web-IO sends to the
application ends with a
chr(0)
character
Summary of Contents for 57630
Page 8: ...8 W T Content...
Page 22: ...22 W T Assigning the IP address...
Page 44: ...44 W T configuring the network parameters...
Page 194: ...194 W T Diacnostics and testing...