Vous êtes ici

ESP-IDF UDP sender

This ESP-IDF application initiates a connection to a Wi-Fi access point. Once the connection is established, it sends a UDP datagram to a remote IP address and port.

When the connection is lost, the application tries to reconnect on a periodic basis.

There are two takeaways in this sample application:

  • how to handle a connection to the Internet via a Wi-Fi access point, in a way that can easily be adapted to "rainy days", as Espressif says in their documentation
  • the use of a design pattern relying on non-blocking inter-task communication (see this article for a little bit more information)