esp-rs / esp-idf-svc

Type-Safe Rust Wrappers for various ESP-IDF services (WiFi, Network, Httpd, Logging, etc.)
https://docs.esp-rs.org/esp-idf-svc/
Apache License 2.0
330 stars 183 forks source link

Added IP_EVENT_ETH_LOST_IP to deserialize list #491

Closed MartinBroers closed 2 months ago

MartinBroers commented 2 months ago

The function deserialize did not check for the event IP_EVENT_ETH_LOST_IP when the ethernet driver lost the IP, instead, it panic'd when the IP is lost. This patch fixes that by additionally checking for the ETH_LOST_IP event and propagates it as a DhcpIpDeassigned event.