Android Question cloudMQTT

derez

Expert
Licensed User
Longtime User
I'm trying to get the MQTT server from cloudMQTT work for me (while everything works with my home mqtt server).
I see in their documentation :
You are sometimes forced to format a connection URL while connecting via client libraries, it should look like mqtt://user:password@server:port .
I put the data of my project there in this b4a line:
B4X:
Private link As String = "mqtt://tfmntyfc:Z_IGRhMnk05F@m21.cloudmqtt.com:19289"
I get error in the initialization line:
B4X:
  client.Initialize("client",link, "WT"&Rnd(1,10000 ) )

Changed to tcp instead of mqtt, with this it passes the initialization but fails on client.connect, I get success = false in client_connect sub:

With ssl it is the same as in tcp.

Help please !
 

derez

Expert
Licensed User
Longtime User
No, this is what I have for my instance




Tried the other ports as well with the same results.
 

Attachments

  • upload_2018-8-29_6-42-5.png
    26.9 KB · Views: 315
Last edited:
Upvote 0