Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: MQTT Client Status

MQTT Client Status 7 months 2 weeks ago #11268

Hi.
I have tried to play a bit with the MQTT client in 5.9 but i having some difficulties in creating the connection to my external broker.When i have my MQTT Client in process 1 "PLC" then i can connect to my broker, but when i change it to Process 2 "IoComm" then i can get a connection established. But im not able to get any data flowing either in our out.
Des anyone have some updated guide how to setup the MQTT client?
The administrator has disabled public write access.

MQTT Client Status 7 months 2 weeks ago #11269

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 2961
  • Karma: 0
Hi Michael,

To build the plc with mqtt support, create a BuildOptions object under the NodeConfig object in the directory volume and check SystemModules/MqttIo. Then to troubleshoot look at the Status attribute of the MQTT_Client object. It should be CONNECTED or will state the error code from the connection call.

/Claes
The administrator has disabled public write access.

MQTT Client Status 7 months 2 weeks ago #11270

Hi Claes :)

Thanks for your reply.
I did managed to configure the MQTT now, but i had to install the libmosquitto-dev lib as well.
Else i got a compilation error.
Maybe this lib should be added to the Getting started guide?
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 2.496 seconds