Acuario Active Member Licensed User Longtime User Dec 17, 2021 #1 Hi, I'm using CloudMQTT (it looks like it runs mosquitto 1.5.9). I can connect to the server with my username and password but the clientID I pass in seems to be ignored. Checking the server log I see the connect but it connects as my username, not my clientID. As a result when I have 2 connections they conflict and keep getting closed. My connection code follows. Any idea what could be the problem? mqttc.Initialize("mqtt", "tcp://" & serverURL & ":" & serverPort, clientID) mo.Initialize(serverUsername, serverPassword) mqttc.Connect2(mo) Click to expand...
Hi, I'm using CloudMQTT (it looks like it runs mosquitto 1.5.9). I can connect to the server with my username and password but the clientID I pass in seems to be ignored. Checking the server log I see the connect but it connects as my username, not my clientID. As a result when I have 2 connections they conflict and keep getting closed. My connection code follows. Any idea what could be the problem? mqttc.Initialize("mqtt", "tcp://" & serverURL & ":" & serverPort, clientID) mo.Initialize(serverUsername, serverPassword) mqttc.Connect2(mo) Click to expand...
Erel B4X founder Staff member Licensed User Longtime User Dec 17, 2021 #2 The client id is set correctly. The problem is somewhere else. Upvote 0