From c00dc0271b69b234d46f839c7c4c3b3ad8f8d86c Mon Sep 17 00:00:00 2001 From: kerms Date: Mon, 15 Jul 2024 13:00:12 +0800 Subject: [PATCH] update(wifi) log ap cred on startup --- project_components/wifi_manager/wifi_manager.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/project_components/wifi_manager/wifi_manager.c b/project_components/wifi_manager/wifi_manager.c index a3a6061..2cd9b8f 100644 --- a/project_components/wifi_manager/wifi_manager.c +++ b/project_components/wifi_manager/wifi_manager.c @@ -118,9 +118,11 @@ void wifi_manager_init(void) wifi_credential_t cred; err = wifi_data_get_ap_credential(&cred); if (err || strlen(cred.password) < 8) { - ESP_LOGI(TAG, "used default AP credential"); + ESP_LOGI(TAG, "use default AP credential"); strncpy((char *)cred.ssid, WIFI_DEFAULT_AP_SSID, 32); strncpy((char *)cred.password, WIFI_DEFAULT_AP_PASS, 64); + } else { + ESP_LOGI(TAG, "use AP credential %s, %s", cred.ssid, cred.password); } wifi_manager_set_ap_credential(&cred);