Closed jayaruvan closed 10 months ago
bump
bump
Hi, @jayaruvan there are two ways for authentication:
Thank you for the reply.
My MQTT server (mosquito / centos7 ) is hosted externally ( global static IP). When I trying to connect to that I am getting this error message
1591613328: New connection from 122.255.11.106 on port 1883. 1591613328: Client disconnected due to protocol error. Can you please add an example with mql
However, If I host it locally /same pc, this works fine. I have checked firewall also. Also, I can connect to my MQTT service via nodejs application.
Basically I want to connect to MQTT server hosted externally. I am really grateful, if you can illustrate how I can achieve this?
bump
I think you should use a MQTT client instead of a ZMQ client.
How can i send Username/PAssword when connecting to server. I am receiving below
1591613328: New connection from 122.255.11.106 on port 1883. 1591613328: Client disconnected due to protocol error.
Can you please add an example with mql