IO-Link Master with IoT Interface DataLine 4 Ports IP 65 / IP 66 / IP 67
51
>
Example: Subscribe to event
33853
Task
: The current values of the following parameters should be sent regularly to a network server with
IP address 192.168.0.4: product name of the IO-Link device at IO-Link port X02, cyclic input data of
the IO-Link device at IO-Link port X02 and the operating temperature of the IO-Link master.
Solution:
Subscribe to the required data using the subscribe service.
Request:
{
"code":"request",
"cid":4711,
"adr":"/timer[1]/counter/datachanged/subscribe",
"data":{"callback":"http://192.168.0.44:80/temp",
"datatosend":[
"/iolinkmaster/port[2]/iolinkdevice/productname",
"/iolinkmaster/port[2]/iolinkdevice/pdin",
"/processdatamaster/temperature"]
}
}
Additionally the interval of the timer[1] has to be set to a value between 500 ms and 2147483647 ms.
Request:
{
"code":"request",
"cid":4712,
"adr":"/timer[1]/interval/setdata",
"data":{"newvalue":500}
}
Response:
{
"cid":4712,
"code":200
}