![background image](http://html1.mh-extra.com/html/ifm/al1302/al1302_operating-instructions-manual_3915929056.webp)
IO-Link Master with PROFINET Interface DataLine 8 Ports IP 65 / IP 66 / IP 67
56
>
9.2.15
MQTT support
54699
54687
The AL1302 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
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:
Request:
{
"code":"request",
"cid":-1,
"adr":"iolinkmaster/port[1]/portevent/datachanged/subscribe",
"data":{
"callback":"mqtt://1
9
2.1
6
8.8
2
.
10
0:1883/abc",
"datatosend":["processdatamaster/temperature"}
}
Response:
{
"cid":-1,
"code":200
}