Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 951bdab

Browse filesBrowse files
committed
WiFiGeneric: Add ETH_LOST_IP event.
1 parent 2773096 commit 951bdab
Copy full SHA for 951bdab

File tree

Expand file treeCollapse file tree

2 files changed

+5
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+5
-0
lines changed

‎libraries/WiFi/src/WiFiGeneric.cpp

Copy file name to clipboardExpand all lines: libraries/WiFi/src/WiFiGeneric.cpp
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,10 @@ static void _arduino_event_cb(void* arg, esp_event_base_t event_base, int32_t ev
437437
} else if (event_base == ETH_EVENT && event_id == ETHERNET_EVENT_STOP) {
438438
log_v("Ethernet Stopped");
439439
arduino_event.event_id = ARDUINO_EVENT_ETH_STOP;
440+
} else if (event_base == IP_EVENT && event_id == IP_EVENT_ETH_LOST_IP) {
441+
ip_event_got_ip_t* event = (ip_event_got_ip_t*) event_data;
442+
log_v("Ethernet lost ip.");
443+
arduino_event.event_id = ARDUINO_EVENT_ETH_LOST_IP;
440444
} else if (event_base == IP_EVENT && event_id == IP_EVENT_ETH_GOT_IP) {
441445
#if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_VERBOSE
442446
ip_event_got_ip_t* event = (ip_event_got_ip_t*) event_data;

‎libraries/WiFi/src/WiFiGeneric.h

Copy file name to clipboardExpand all lines: libraries/WiFi/src/WiFiGeneric.h
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ typedef enum {
5858
ARDUINO_EVENT_ETH_DISCONNECTED,
5959
ARDUINO_EVENT_ETH_GOT_IP,
6060
ARDUINO_EVENT_ETH_GOT_IP6,
61+
ARDUINO_EVENT_ETH_LOST_IP,
6162
ARDUINO_EVENT_WPS_ER_SUCCESS,
6263
ARDUINO_EVENT_WPS_ER_FAILED,
6364
ARDUINO_EVENT_WPS_ER_TIMEOUT,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.