I have WiFi examples working on a ESP32-Lyrat board using IDF examples such as FileServing.
However whenver I try ADF examples such as "http_play_and_save_to_file" or "play_mp3_downloaded_from_http" the wifi seems not to work.
My code at the step it gets to looks like:
ESP_LOGI(TAG, "[4.0] Start and wait for Wi-Fi network");
esp_periph_config_t periph_cfg = DEFAULT_ESP_PERIPH_SET_CONFIG();
esp_periph_set_handle_t set = esp_periph_set_init(&periph_cfg);
periph_wifi_cfg_t wifi_cfg = {
.ssid = CONFIG_WIFI_SSID,
.password = CONFIG_WIFI_PASSWORD,
};
tcpip_adapter_init();
esp_periph_handle_t wifi_handle = periph_wifi_init(&wifi_cfg);
ESP_LOGI(TAG, "WIFI INIT");
esp_periph_start(set, wifi_handle);
ESP_LOGI(TAG, "PERIPH START"); // <----- GETTING HERE
periph_wifi_wait_for_connected(wifi_handle, portMAX_DELAY);
ESP_LOGI(TAG, "WIFI CONNECT"); // <----- NOT GETTING HERE
My terminal shows:
I (1470) PLAY_AND_SAVE_FILE: [4.0] Start and wait for Wi-Fi network
E (1477) gpio: gpio_install_isr_service(438): GPIO isr service already installed
I (1485) PLAY_AND_SAVE_FILE: WIFI INIT
I (1499) PLAY_AND_SAVE_FILE: PERIPH START
I (1500) wifi:wifi driver task: 3ffcb2dc, prio:23, stack:6656, core=0
I (1500) system_api: Base MAC address is not set
I (1505) system_api: read default base MAC address from EFUSE
I (1526) wifi:wifi firmware version: 1865b55
I (1526) wifi:wifi certification version: v7.0
I (1526) wifi:config NVS flash: enabled
I (1527) wifi:config nano formating: disabled
I (1531) wifi:Init data frame dynamic rx buffer num: 32
I (1536) wifi:Init management frame dynamic rx buffer num: 32
I (1541) wifi:Init management short buffer num: 32
I (1546) wifi:Init static tx buffer num: 16
I (1550) wifi:Init tx cache buffer num: 32
I (1554) wifi:Init static rx buffer size: 1600
I (1558) wifi:Init static rx buffer num: 16
I (1562) wifi:Init dynamic rx buffer num: 32
I (1566) wifi_init: rx ba win: 16
I (1570) wifi_init: tcpip mbox: 32
I (1574) wifi_init: udp mbox: 6
I (1577) wifi_init: tcp mbox: 6
I (1581) wifi_init: tcp tx win: 5744
I (1586) wifi_init: tcp rx win: 5744
I (1590) wifi_init: tcp mss: 1440
I (1594) wifi_init: WiFi/LWIP prefer SPIRAM
I (1599) wifi_init: WiFi IRAM OP enabled
I (1603) wifi_init: WiFi RX IRAM OP enabled
ets Jun 8 2016 00:22:57
I read the post viewtopic.php?f=20&t=18545 which says to add the line tcpip_adapter_init(); to get it to work and that it is solved.
Any help would be much appreciated.
WiFi connection issues
Jump to
- English Forum
- Explore
- News
- General Discussion
- FAQ
- Documentation
- Documentation
- Sample Code
- Discussion Forum
- Hardware
- ESP-IDF
- ESP-BOX
- ESP-ADF
- ESP-MDF
- ESP-WHO
- ESP-SkaiNet
- ESP32 Arduino
- IDEs for ESP-IDF
- ESP-AT
- ESP IoT Solution
- ESP RainMaker
- Rust
- ESP8266
- Report Bugs
- Showcase
- Chinese Forum 中文社区
- 活动区
- 乐鑫活动专区
- 讨论区
- 全国大学生物联网设计竞赛乐鑫答疑专区
- ESP-IDF 中文讨论版
- 《ESP32-C3 物联网工程开发实战》书籍讨论版
- 中文文档讨论版
- ESP-AT 中文讨论版
- ESP-BOX 中文讨论版
- ESP IoT Solution 中文讨论版
- ESP-ADF 中文讨论版
- ESP Mesh 中文讨论版
- ESP Cloud 中文讨论版
- ESP-WHO 中文讨论版
- ESP-SkaiNet 中文讨论版
- ESP 生产支持讨论版
- 硬件问题讨论
- 项目展示
Who is online
Users browsing this forum: No registered users and 18 guests
- All times are UTC
- Top
- Delete cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. ESP8266EX and ESP32 are some of our products.