You can follow this tutorial: Access Node-RED Dashboard from Anywhere using Digital Ocean Hosting Service – Digital Ocean You can also install Node-RED on the same cloud (Digital Ocean hosting account) to control and monitor your boards from anywhere in the world using your computer or your smartphone. ESP32 #1 is subscribed to that topic, so it receives board2 sensor readings. Similarly, ESP32 #2 publishes temperature readings on the board2/temperature topic.So, ESP32 #1 can control the ESP32 #2 outputs. The message can indicate whether ESP32 #2 should turn an output on or off. ESP32 #1 publishes on a topic that ESP32 #2 is subscribed to ( board2/output1).Even though they are on different networks, they can communicate with each other using the Cloud MQTT broker by subscribing and publishing on the same topics.Each board is connected to a different router with access to the internet. The previous image shows two ESP32 boards on different networks.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |