MQTT_Client

I am trying to connect to an mqtt but gets an error 16#0006: Failure, can someone help identify why
PlCnext_4.png

I have the same problem. I posted here and to the developer. Crickets…

I see in you FB you specify the tcp protocol. Documentation says this is not needed, nor the port.

image.png

I see in you FB you specify the tcp protocol. Documentation says this is not needed, nor the port.</p>[https://forum.plcnext-community.net/uploads/TZTXMNJEL7KR/image.png</a></p>

yes, took took the port and protocol off but still has the same error.
image.png

#16 means hexadecimal.
AI says error 6 is authorization failure. This may not be accurate but I think it is.
When i finally got mine to work i used the exact parameter values on the same broker from a different client and then did the same here.
I got this block to work against mosquitto w+w/o certs and against Azure event grid w certs.

If you still can’t get it to work you can use the iot blocks which give more control. Error codes are the same but maybe the documentation might trigger a thought.

image.png