![background image](http://html1.mh-extra.com/html/ifm/al1330/al1330_operating-instructions-manual_3887894068.webp)
IO-Link master with EtherCAT interface DataLine 4 ports IP 65 / IP 66 / IP 67
68
{
"code":"request",
"cid":4716,
"adr":"/connections/mqttConnection/MQTTSetup/QoS/setdata",
"data":{"QoS2"}
}
>
Example: Publish the temperature to an MQTT broker
54687
Task:
Publish the temperature of the 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":"/timer[1]/counter/datachanged/subscribe",
"data":{
"callback":"mqtt://192.168.82.100:1883/abc",
"datatosend":["processdatamaster/temperature"}
}
•
Response:
{
"cid":-1,
"code":200
}