0

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?
  • 3
    Define "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 Jan 30 '17 at 13:38
0

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 Jan 30 '17 at 20:52
  • 1
    UDP was exactly what I need. – user317 Jan 31 '17 at 13:50
  • 1
    I 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 approp – Allen Edwards Jan 26 '18 at 17:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.