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: