Search found 14 matches

by ESP_tuanpm
Mon Feb 11, 2019 12:34 pm
Forum: ESP32 Arduino
Topic: Response is too delayed for HTTPClient.post() request
Replies: 1
Views: 277

Re: Response is too delayed for HTTPClient.post() request

Hi @Yatheesha Did you use esp_http_client_read to read the data? If yes and you provide the len parameter more than the number of bytes to read, then http_client will wait for the end of the timeout to return. You can use esp_http_client_get_content_length to know the exact number of bytes to read b...
by ESP_tuanpm
Wed Dec 19, 2018 4:10 am
Forum: ESP-IDF 中文讨论版
Topic: 請問一下以 Sample code 為框架的一些開發觀念問題!!
Replies: 10
Views: 1291

Re: 請問一下以 Sample code 為框架的一些開發觀念問題!!

Hi YutingLin

Yes, If you want to use esp_http_client you need to include "esp_http_client.h".
Similarly to other libraries, you need to include the header file before use. This is easy to see in the examples.
by ESP_tuanpm
Tue Dec 18, 2018 8:50 am
Forum: ESP-IDF 中文讨论版
Topic: 請問一下以 Sample code 為框架的一些開發觀念問題!!
Replies: 10
Views: 1291

Re: 請問一下以 Sample code 為框架的一些開發觀念問題!!

Hi YutingLing,

Could you please provide the error logs after you #include "esp_http_client.h" and compile success?
by ESP_tuanpm
Thu Nov 29, 2018 3:16 am
Forum: General Discussion
Topic: issue in using esp_http_client
Replies: 7
Views: 832

Re: issue in using esp_http_client

I have one http client application which communicates to the Cloud. I use http client API's as follows: 1> esp_http_client_init. 2> esp_http_client_set_header to set the headers. 3> then 'esp_http_client_open' to open the connection. 4> esp_http_client_get_content_length 5> esp_http_client_write 6>...
by ESP_tuanpm
Tue Nov 27, 2018 3:50 am
Forum: General Discussion
Topic: Recommendations for MQTT Library with ESPIDF
Replies: 15
Views: 3614

Re: Recommendations for MQTT Library with ESPIDF

Hi @ESP_tuanpm I think it's not about re-send the failed packet. The esp-mqtt library is *not* thread safe at all. Just think about 2 tasks calling any of esp_mqtt_client_subscribe()/esp_mqtt_client_unsubscribe()/esp_mqtt_client_ping()/ esp_mqtt_client_publish() APIs at the same time on differnct C...
by ESP_tuanpm
Mon Nov 26, 2018 8:56 am
Forum: General Discussion
Topic: Recommendations for MQTT Library with ESPIDF
Replies: 15
Views: 3614

Re: Recommendations for MQTT Library with ESPIDF

Since this post was originally made last year, the esp-mqtt library has been integrated into ESP-IDF. Is the esp-mqtt library thread safe? I don't find locking mechanism in the esp-mqtt library code. So I'm wondering if it is ok to call esp_mqtt_client_publish() in another task? The example code ca...
by ESP_tuanpm
Thu Oct 04, 2018 4:19 pm
Forum: ESP32 ADF
Topic: Failed to run ADF bt_sink demo - keeps resetting.
Replies: 2
Views: 1048

Re: Failed to run ADF bt_sink demo - keeps resetting.

Hi @fernando306

Please erase the flash and try again, maybe resolve your problem

Code: Select all

make erase_flash
by ESP_tuanpm
Tue Jul 03, 2018 11:29 am
Forum: ESP32 ADF
Topic: Guru Meditation Error
Replies: 4
Views: 2679

Re: Guru Meditation Error

Hi @jiang123

Could you please help setup gdb debug: http://esp-idf.readthedocs.io/en/latest ... nitor.html

When the reset occurs, it will jump to gdb, then type bt and copy full backtrace information to here

Thanks
by ESP_tuanpm
Fri May 18, 2018 8:28 am
Forum: ESP32 ADF
Topic: pipeline_baidu_speech_mp3 ERROR
Replies: 2
Views: 1394

Re: pipeline_baidu_speech_mp3 ERROR

Hi

I think this problem because the access key is incorrect,
My access key and access secret like the attached picture

Go to advanced search