examples: removed ip4addr_ntoa and used prefered IP2STR for displaying IP addresses

This commit is contained in:
David Cermak
2019-08-20 14:40:34 +02:00
parent d57890cdff
commit ec9f245dd3
15 changed files with 17 additions and 23 deletions

View File

@@ -91,7 +91,7 @@ static void got_ip_event_handler(void* arg, esp_event_base_t event_base,
int32_t event_id, void* event_data)
{
ip_event_got_ip_t* event = (ip_event_got_ip_t*) event_data;
ESP_LOGI(TAG, "got ip: %s", ip4addr_ntoa(&event->ip_info.ip));
ESP_LOGI(TAG, "got ip: " IPSTR, IP2STR(&event->ip_info.ip));
}
/*init wifi as sta and start wps*/