I need a remote display to show information sent via WiFi from another ESP8266. What needs to be sent is a string along with some variables, for example a string to be displayed along with two integers for the position on the display:
0, 12, "message to display on screen"
As I am absolutely new to network stuff, what would be the best way to achieve this?
- Sending a POST request through REST API?
- Use UDP instead?
- Or better use a framework like MQTT?
-
3Define "best". For example, easiest to implement? Most reliable? Most flexible? Smallest code size? Most easily extensible? Easiest to expand? Or, maybe you don't want best, but adequate..? There are examples in the SDK of how to connect to wifi and send and receive data.Mark Smith– Mark Smith2017年01月30日 13:38:30 +00:00Commented Jan 30, 2017 at 13:38
1 Answer 1
Try the esp8266 UDP messages
With UDP you can send and receive messages quite easily and without consuming lots of resources.
-
Thank you! I'll check back as soon as I've learned something about UDP.user317– user3172017年01月30日 20:52:57 +00:00Commented Jan 30, 2017 at 20:52
-
1UDP was exactly what I need.user317– user3172017年01月31日 13:50:31 +00:00Commented Jan 31, 2017 at 13:50
-
1I set up one esp8266 as an access point sending udp messages to multiple displays. The remote displays connect to the access point and then can receive whatever is sent. The displays are esp8266 devices as well. This works well and I can have multiple displays all listening to the same udp messages. This thread is pretty old but I would just lend support to the reply of using udp for a remote display. You will occasionally miss a message so that needs to be considered. In my testing it was rare, like maybe 1% of the time. If you must get the message there, another protocol might be more appropAllen Edwards– Allen Edwards2018年01月26日 17:15:25 +00:00Commented Jan 26, 2018 at 17:15
Explore related questions
See similar questions with these tags.