Skip to content

Trying to connect to a MQTT Broker with the IIOT_Library Version 2.0.0

Good evening,

I'm completely new to the PLCnext and trying to connect to a MQTT-Broker using IIOT_Library Version 2.0.0.
I'm using an AXC F 2152 with HW02 and Firmware 2021.0.3.
There are no problems creating the client object, but every time I'm trying to connect to the broker, the plc crashes and reboots.
There are no error messages in the PLCnext Engineer.
What confuses me even more, is that there is no log of the crash in the Output.log. That crash should be around 9:28 in the output.log.
Where can I find some kind of error message?
The connectionoptions are empty. Can this be the reason for failure? Even if I'm using wrong parameters, is it normal, that there is no error message?

Thanks a lot
Marisa

Comments

  • You can ask for help on any library from the PLCnext Store by clicking the "Contact" button on the app page. That help will come directly from the developers.

    The documentation for that library says that it supports firmware versions >= 2021.0.5.

    The documentation also says this about the ServerUri parameter:

    The URI should be of the form protocol://host... where protocol must be tcp or ssl

    ... so you will need to put tcp:// at the front of the string.

    Hope this helps.
Sign In or Register to comment.