Search found 24 matches

by wuyuanyi
Wed Dec 06, 2023 7:46 am
Forum: ESP-IDF
Topic: What is the purpose of using httpd_queue_work?
Replies: 4
Views: 6765

Re: What is the purpose of using httpd_queue_work?

I succeed implementing the asynchronous response using the following code Note the commented code, where I assumed that httpd_queue_work is used to delegate the http communication to the http server thread. However, without using httpd_queue_work it works just fine. This makes me wonder more when h...
by wuyuanyi
Sat Jan 07, 2023 2:49 pm
Forum: ESP-IDF
Topic: What is the purpose of using httpd_queue_work?
Replies: 4
Views: 6765

Re: What is the purpose of using httpd_queue_work?

I succeed implementing the asynchronous response using the following code Note the commented code, where I assumed that httpd_queue_work is used to delegate the http communication to the http server thread. However, without using httpd_queue_work it works just fine. This makes me wonder more when ht...
by wuyuanyi
Sat Jan 07, 2023 12:44 pm
Forum: ESP-IDF
Topic: What is the purpose of using httpd_queue_work?
Replies: 4
Views: 6765

What is the purpose of using httpd_queue_work?

Hi, I am looking at the http server component and found this function: httpd_queue_work. After tracing the source code, I found that It merely ask the http server thread to invoke the work callback immediately. The callback is not called in a standalone thread. I wonder what is the purpose of using ...
by wuyuanyi
Tue Dec 06, 2022 8:20 am
Forum: General Discussion
Topic: esp_event: event finalization callback function
Replies: 4
Views: 2030

Re: esp_event: event finalization callback function

I think this approach with the "magic" size value would result in less readable code of the application. You could probably add a function-like macro to "hide" this detail, and make the calling code look nicer, but then it's not going to be any different to introducing a new API. Also, would it be ...
by wuyuanyi
Tue Dec 06, 2022 6:31 am
Forum: General Discussion
Topic: esp_event: event finalization callback function
Replies: 4
Views: 2030

Re: esp_event: event finalization callback function

Hi wuyuanyi, What you describe should be possible. We could introduce something like esp_event_post_moved which would take ownership of the pointer and would accept the deletion callback argument instead of event_data_size. Internally the deletion callback (finalizer) could be stored in an esp_even...
by wuyuanyi
Sun Nov 27, 2022 5:23 am
Forum: General Discussion
Topic: esp_event: event finalization callback function
Replies: 4
Views: 2030

esp_event: event finalization callback function

Hi, I am looking into using the esp_event to exchange data between my components. Currently, I am facing such an issue: my data is a non-trivial c++ class (e.g., stl containers), hence relying on the pass-by-copy mechanism of the event loop does not work for me. The alternative is to allocate the ob...
by wuyuanyi
Wed Nov 02, 2022 6:16 pm
Forum: General Discussion
Topic: Does esp_now_send queue?
Replies: 0
Views: 733

Does esp_now_send queue?

Hi, In the documentation: https://docs.espressif.com/projects/esp-idf/en/release-v4.0/api-reference/network/esp_now.html#send-esp-now-data If there is a lot of ESP-NOW data to send, call esp_now_send() to send less than or equal to 250 bytes of data once a time. Note that too short interval between ...
by wuyuanyi
Thu Oct 27, 2022 6:16 pm
Forum: General Discussion
Topic: esp32-camera: Corrupted image when I send it to a FTP server in a separate task
Replies: 4
Views: 2504

Re: esp32-camera: Corrupted image when I send it to a FTP server in a separate task

Hi thoraz,
Interesting findings. Can you also share your PCB layout?
by wuyuanyi
Mon Oct 24, 2022 5:38 pm
Forum: General Discussion
Topic: ESP-NOW using multiple hubs
Replies: 6
Views: 2399

Re: ESP-NOW using multiple hubs

I have read that ESP-NOW uses both MAC and IP addressing but I have not found a good article about when or if to use either or both. I will have a CPU sending out one request at a time directed to a single endpoint which could be on either network. Would it be best to set fixed IP's on everything, ...
by wuyuanyi
Mon Oct 24, 2022 6:47 am
Forum: General Discussion
Topic: Does intra-PSRAM memcpy involve SPI bus data transmission?
Replies: 2
Views: 1123

Re: Does intra-PSRAM memcpy involve SPI bus data transmission?

ESP_Sprite wrote:
Mon Oct 24, 2022 12:04 am
PSRAM chips don't have functionality to do an internal copy, so it always happens via the SPI lines. Memcpy() also invokes the cache and CPU to do the copy, the async function uses DMA so the CPU is free.
Thanks for your clarification