@@ -81,7 +81,7 @@ void NetworkInterface::_onIpEvent(int32_t event_id, void *event_data) {
81
81
);
82
82
#endif
83
83
memcpy (&arduino_event.event_info .got_ip , event_data, sizeof (ip_event_got_ip_t ));
84
- #if SOC_WIFI_SUPPORTED
84
+ #if SOC_WIFI_SUPPORTED || CONFIG_ESP_WIFI_REMOTE_ENABLED
85
85
if (_interface_id == ESP_NETIF_ID_STA) {
86
86
arduino_event.event_id = ARDUINO_EVENT_WIFI_STA_GOT_IP;
87
87
} else
@@ -96,7 +96,7 @@ void NetworkInterface::_onIpEvent(int32_t event_id, void *event_data) {
96
96
#if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_VERBOSE
97
97
log_v (" %s Lost IP" , desc ());
98
98
#endif
99
- #if SOC_WIFI_SUPPORTED
99
+ #if SOC_WIFI_SUPPORTED || CONFIG_ESP_WIFI_REMOTE_ENABLED
100
100
if (_interface_id == ESP_NETIF_ID_STA) {
101
101
arduino_event.event_id = ARDUINO_EVENT_WIFI_STA_LOST_IP;
102
102
} else
@@ -123,7 +123,7 @@ void NetworkInterface::_onIpEvent(int32_t event_id, void *event_data) {
123
123
);
124
124
#endif
125
125
memcpy (&arduino_event.event_info .got_ip6 , event_data, sizeof (ip_event_got_ip6_t ));
126
- #if SOC_WIFI_SUPPORTED
126
+ #if SOC_WIFI_SUPPORTED || CONFIG_ESP_WIFI_REMOTE_ENABLED
127
127
if (_interface_id == ESP_NETIF_ID_STA) {
128
128
arduino_event.event_id = ARDUINO_EVENT_WIFI_STA_GOT_IP6;
129
129
} else if (_interface_id == ESP_NETIF_ID_AP) {
@@ -136,7 +136,7 @@ void NetworkInterface::_onIpEvent(int32_t event_id, void *event_data) {
136
136
arduino_event.event_id = ARDUINO_EVENT_ETH_GOT_IP6;
137
137
}
138
138
#endif /* CONFIG_LWIP_IPV6 */
139
- #if SOC_WIFI_SUPPORTED
139
+ #if SOC_WIFI_SUPPORTED || CONFIG_ESP_WIFI_REMOTE_ENABLED
140
140
} else if (event_id == IP_EVENT_AP_STAIPASSIGNED && _interface_id == ESP_NETIF_ID_AP) {
141
141
setStatusBits (ESP_NETIF_HAS_IP_BIT);
142
142
#if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_VERBOSE
0 commit comments