EasyManua.ls Logo

IFM AL1340 - Page 57

IFM AL1340
129 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
IO-Link Master with Modbus TCP Interface DataLine 4 Ports IP 65 / IP 66 / IP 67
57
>
9.2.15 MQTT support
54699
The AL1340 can operate as a client in a MQTT-based communication environment. By using the
subscribe service it is possible to send messages to a MQTT broker (PUBLISH).
>
Example: Publish the temperature to an MQTT broker
54687
Task: Publish the temperature of an IO-Link master to an MQTT broker (IP address MQTT broker:
192.168.82.100, port: 1883, Topic:abc).
Solution: xxx
Request:
{
"code":"request",
"cid":-1,
"adr":"iolinkmaster/port[1]/portevent/datachanged/subscribe",
"data":{
"callback":"mqtt://192.168.82.100:1883/abc",
"datatosend":["processdatamaster/temperature"}
}
Response:
{
"cid":-1,
"code":200
}