Search found 133 matches

by zliudr
Tue Apr 07, 2020 5:31 am
Forum: ESP32 IDF
Topic: http_client event handler
Replies: 0
Views: 42

http_client event handler

I'm writing a file downloader routine where I have the http client event handler save downloaded file to a RAM buffer. When that is full, I write it to sd card, start from the beginning of the buffer to fill it again until their is no more data. So the HTTP_EVENT_ON_DATA handler reads and dumps data...
by zliudr
Tue Apr 07, 2020 3:37 am
Forum: ESP32 IDF
Topic: httpd_uri: httpd_register_uri_handler: no slots left for registering handler
Replies: 2
Views: 312

Re: httpd_uri: httpd_register_uri_handler: no slots left for registering handler

I'm sorry. I think my project changed direction and I didn't continue on the httpd route. I looked up what I wrote down and nothing.
by zliudr
Tue Apr 07, 2020 3:22 am
Forum: ESP32 IDF
Topic: Make causes antimalware executable to run at high cpu and memory
Replies: 0
Views: 44

Make causes antimalware executable to run at high cpu and memory

I didn't notice this until now. Whenever I make, win 10 antimalware executable runs at a high CPU % and memory size. When make completes, this drops down. Any reason for this? Any way to make changes?
by zliudr
Mon Mar 30, 2020 6:55 pm
Forum: ESP32 IDF
Topic: OTA partition data format?
Replies: 2
Views: 173

Re: OTA partition data format?

Thanks for the help. I did some digging and found this include file: esp-idf/components/bootloader_support/include/esp_flash_partitions.h It has the states and the data structure defined as below: /// OTA_DATA states for checking operability of the app. typedef enum { ESP_OTA_IMG_NEW = 0x0U, /*!< Mo...
by zliudr
Sun Mar 29, 2020 9:41 pm
Forum: ESP32 IDF
Topic: [INFO] Getting OTA rollback to work
Replies: 0
Views: 143

[INFO] Getting OTA rollback to work

This post is about how OTA rollback didn't work for me and how I made it work. If you have more ideas than me please respond with corrections. If you're just getting started with OTA rollback, this hopefully gives you some guidance. I have the "enable rollback" enabled in menuconfig, compiled app an...
by zliudr
Sun Mar 29, 2020 9:01 pm
Forum: ESP32 IDF
Topic: OTA partition data format?
Replies: 2
Views: 173

OTA partition data format?

I'm learning OTA. It seems that the simple https_ota is not hard to incorporate in my existing project (after much reading and testing of course). On the other hand, I didn't not observe rollback (I didn't enable it first). I'm now interested in understanding the otadata partition data format. For n...
by zliudr
Sun Mar 29, 2020 4:22 am
Forum: ESP32 IDF
Topic: Any known issues with calling SPI master library in ESP-IDF V3.3 by C++ code?
Replies: 1
Views: 611

Re: Any known issues with calling SPI master library in ESP-IDF V3.3 by C++ code?

Sorry I didn't get back to this issue sooner. I actually was having an overlap of pin definitions. I tested with only a simple code so I defined SPI pins using these: #define SPI_PIN_MOSI xx But once I combined my code into my existing project, there was already this #def but they are used to define...
by zliudr
Sun Mar 29, 2020 4:10 am
Forum: ESP32 IDF
Topic: Limits of esp_http_client's set_header
Replies: 1
Views: 132

Re: Limits of esp_http_client's set_header

What about default headers? What headers and values are included? I tested: Host:xxx is included by init() Content-length:xxx is added by perform() Content-Type: application/x-www-form-urlencoded is also added by perform() when using POST method Connection: is not included User-Agent: is not include...
by zliudr
Sun Mar 29, 2020 12:16 am
Forum: ESP32 IDF
Topic: Limits of esp_http_client's set_header
Replies: 1
Views: 132

Limits of esp_http_client's set_header

How many headers can I add to the esp_http_client? Is it limited only by memory, with some sort of linked list structure? The doc is very bare. No example snippets at all on headers. I figured out my answer with the source code. In case you wonder or you have comments. Here is what I found from http...
by zliudr
Wed Mar 18, 2020 2:57 pm
Forum: ESP32 IDF
Topic: Any known issues with calling SPI master library in ESP-IDF V3.3 by C++ code?
Replies: 1
Views: 611

Any known issues with calling SPI master library in ESP-IDF V3.3 by C++ code?

I recently completed a short project calling the SPI master library in C. Everything worked. Now that I moved to C++, things fail, i.e. I no longer get the same response as before, just some 0xFF. I need to look into maybe testing some very simple SPI transactions first but just in case this library...

Go to advanced search