Developing with lwIP
lightweight IP (lwIP) is an open source TCP/IP stack for embedded systems and ESP-IDF has imported it into the framework. The idea behind lwIP is to create a small-footprint TCP/IP protocol suite that resource-constrained embedded systems can use to connect to IP-based networks and leverage the services in a network. lwIP is one of the most popular TCP/IP stacks targeting embedded systems on the market.
Basically, the ESP-IDF port supports the following APIs of lwIP:
- Berkeley Software Distribution (BSD) sockets API for TCP and UDP connections
- Dynamic Host Configuration Protocol (DHCP) for dynamic IP addressing
- Simple Network Time Protocol (SNTP) as a time protocol
- Multicast Domain Name System (mDNS) for host name resolution and service information
- Internet Control Message Protocol (ICMP) for network monitoring and diagnostics
Actually, we have already used some of these behind the scenes in our previous examples. In the STA mode...