@@ -81,7 +81,7 @@ void NetworkInterface::_onIpEvent(int32_t event_id, void *event_data) {
8181 );
8282#endif
8383 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
8585 if (_interface_id == ESP_NETIF_ID_STA) {
8686 arduino_event.event_id = ARDUINO_EVENT_WIFI_STA_GOT_IP;
8787 } else
@@ -96,7 +96,7 @@ void NetworkInterface::_onIpEvent(int32_t event_id, void *event_data) {
9696#if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_VERBOSE
9797 log_v (" %s Lost IP" , desc ());
9898#endif
99- #if SOC_WIFI_SUPPORTED
99+ #if SOC_WIFI_SUPPORTED || CONFIG_ESP_WIFI_REMOTE_ENABLED
100100 if (_interface_id == ESP_NETIF_ID_STA) {
101101 arduino_event.event_id = ARDUINO_EVENT_WIFI_STA_LOST_IP;
102102 } else
@@ -123,7 +123,7 @@ void NetworkInterface::_onIpEvent(int32_t event_id, void *event_data) {
123123 );
124124#endif
125125 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
127127 if (_interface_id == ESP_NETIF_ID_STA) {
128128 arduino_event.event_id = ARDUINO_EVENT_WIFI_STA_GOT_IP6;
129129 } else if (_interface_id == ESP_NETIF_ID_AP) {
@@ -136,7 +136,7 @@ void NetworkInterface::_onIpEvent(int32_t event_id, void *event_data) {
136136 arduino_event.event_id = ARDUINO_EVENT_ETH_GOT_IP6;
137137 }
138138#endif /* CONFIG_LWIP_IPV6 */
139- #if SOC_WIFI_SUPPORTED
139+ #if SOC_WIFI_SUPPORTED || CONFIG_ESP_WIFI_REMOTE_ENABLED
140140 } else if (event_id == IP_EVENT_AP_STAIPASSIGNED && _interface_id == ESP_NETIF_ID_AP) {
141141 setStatusBits (ESP_NETIF_HAS_IP_BIT);
142142#if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_VERBOSE
0 commit comments