Connecting to EMQX cloud broker with a node mcu

25 Views Asked by At

I am having trouble connecting to my EMQX broker that is deployed on the cloud. It is a serverless free deployment. I am trying to connect to the broker from my Node MCU. The board connects to the WiFi without an issue and also connects to the publicly available broker i.e. broker.emqx.io But whenever I try to connect to my private broker, the connection fails and I get a return code of either -2 or -4. Why am I getting this problem?

Any sort of help is appreciated. Thanks!

0

There are 0 best solutions below