Android Question Update button status in two or more devices (cell phones)

ALEX BISSARO PITTA

Member
Licensed User
I have created B4A app with B4R (Arduino Mega) with UDP communication.

As example, If I click on button "A" on device1 it will keep active on this device but if a look on device2 button "A" is still not active.

What's the best way to keep button and status syncronized between two or more devices?
 

Peter Simpson

Expert
Licensed User
Longtime User
If your LAN is connected on the Mega, you could try MQTT, but that completely depends on what you are using it for. Try looking for B4RSerializator and MQTT. You can either use a free online MQTT broker service or run your own in house MQTT broker via a spare Android device, just search the forum for MQTT broker or MQTT Mosquitto.

By the way you can also look at Asyncstream with server socket if you do not fancy using MQTT.
 
Last edited:
Upvote 0
Top