Hi,
I would like to use "MQTT Chat with Auto Discovery" with internet cloud service.
I tried with the free service on https://www.maqiatto.com with the following code:
B4X:
client.Initialize("client", "tcp://maqiatto.com:8883", "android" & Rnd(1, 10000000))
Dim mo As MqttConnectOptions
mo.Initialize("my username", "my password")
client.Connect2(mo)
client.Initialize("client", "tcp://maqiatto.com:1883", "android" & Rnd(1, 10000000))
Dim mo As MqttConnectOptions
mo.Initialize("my username", "my password")
client.Connect2(mo)
Now I can connect, but when I push "start server", the code doesn't open chat page.
And if I start another phone as client, the button "Connect As Client" remains disabled.
Maybe the autodiscovery function is not made for mqtt cloud server ?