Ubidots Community

How can I stream data between two NodeMCU devices?

I am trying to develop a system in which two NodeMCU devices stream data between each other.
When the button on NodeMCU A is pressed, an LED on NodeMCU B is lit in real time, and vice versa.
This would work similarly to a morse machine, where pressing a button on one end would deliver it to the other in real time.

Is this streaming between devices possible to do with the Ubidots platform?

Hi there, yes, you should use MQTT. To reach your goal, with NodeMCU A you should send values to a variable in your Ubidots account and you would just need at NodeMCU B side to subscribe to the variable to get real-time updates. Please refer to our docs for further information about MQTT protocol and MQTT subscribe firmware examples.

All the best