我试过用esp-idf的smartconfig获取ssid是CONFIG_WIFI_SSID和password是CONFIG_WIFI_PASSWORD后,然后用esp-adf的函数如:
void pipeline_wifi_set(void)
{
printf("start:pipeline_wifi_set\n");
//*********periph_wifi_network**************
ESP_LOGI(TAG, "[ 0.1 ] Start and wait for Wi-Fi network");
esp_periph_config_t periph_cfg = { 0 };
esp_periph_init(&periph_cfg);
periph_wifi_cfg_t wifi_cfg = {
.ssid = CONFIG_WIFI_SSID,
.password = CONFIG_WIFI_PASSWORD,
};
esp_periph_handle_t wifi_handle = periph_wifi_init(&wifi_cfg);
printf(".ssid is :%s\n.password is :%s\n", wifi_cfg.ssid, wifi_cfg.password);
esp_periph_start(wifi_handle);
periph_wifi_wait_for_connected(wifi_handle, portMAX_DELAY);
}
尝试连接wifi,最终设备停留在periph_wifi_wait_for_connected(wifi_handle, portMAX_DELAY),没有成功。
请问如何在使用esp-adf做wifi音频前,用smartconfig连上wifi?
请问如何在使用esp-adf做wifi音频前,用smartconfig连上wifi?
Who is online
Users browsing this forum: No registered users and 12 guests