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

TOPIC: MQTT Client Status

MQTT Client Status 2 years 5 months ago #11268

  • michael.schalck
  • michael.schalck's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 1
  • Karma: 0
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 2 years 5 months ago #11269

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3177
  • Thank you received: 502
  • Karma: 133
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 2 years 5 months ago #11270

  • michael.schalck
  • michael.schalck's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 1
  • Karma: 0
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: 8.188 seconds