IO-Link Master with IoT Interface DataLine 8 Ports IP 65 / IP 66 / IP 67
52
>
9.2.14
MQTT support
54699
The AL1352 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://172.18.87.50:1883/abc",
"datatosend":["processdatamaster/temperature"}
}
Response:
{
"cid":-1,
"code":200
}