Android Question MQTT between Android and ESP

james_sgp

Active Member
Licensed User
Longtime User
Hi, I`m trying to get the MQTT setup between an ESP board and B4A. I have tested the MQTT with Autodiscovery between two phones and works perfectly, however, I can`t get it to work with the ESP. The code on the ESP is waiting for topic and I don`t see how that is used in the B4A MQTT example?
 

james_sgp

Active Member
Licensed User
Longtime User
OK, I think I`ve answered my own question. In the MQTT Chat example (shown above) the topic is hardcoded into the Publish2 statements as 'ALL' is this correct, so in rMQTT I can hardcode the topic the same?
 
Upvote 0

james_sgp

Active Member
Licensed User
Longtime User
Apologies, it's me not properly going through code (too many projects at once....haha). I couldn`t see how to send the topic name, then realized it was part of the Publish2 command.
 
Upvote 0
Top