I'm trying run the http client in async mode.
I works fine running in blocking mode, but when I change to async mode it fails, with the failure below.
The only thing I changed in my code was:
esp_http_client_config_t config = {
.method = method,
.url = url,
.event_handler = _http_event_handler,
.crt_bundle_attach = esp_crt_bundle_attach,
.user_data = buffer, // Pass address of local buffer to get response
.buffer_size = MAX_HTTP_OUTPUT_BUFFER,
.timeout_ms = 20000,
.is_async = true,
};
s_client = esp_http_client_init(&config);
...
...
do {
err = esp_http_client_perform(s_client);
} while (ESP_ERR_HTTP_EAGAIN == err);
I (108762) GATTS_SPP_TUK: EVT 15, gatts if 3
I (108765) GATTS_SPP_TUK: event = f
E (108776) GATTS_SPP_TUK: GAP_EVT, event 6
W (108844) BT_HCI: hcif disc complete: hdl 0x0, rsn 0x16
I (110091) esp-x509-crt-bundle: Certificate validated
E (129593) transport_base: esp_tls_conn_read error, errno=No more processes2
HTTP client fail in async mode
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: Google [Bot] and 69 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.