Search found 4 matches

by Hello1024
Mon Apr 29, 2024 6:44 pm
Forum: Hardware
Topic: Pin state at startup.. Hi-Z?
Replies: 2
Views: 1299

Pin state at startup.. Hi-Z?

I'm having some trouble keeping a pin in Hi-Z mode through a reset. Take GPIO4 for example of the ESP32-S3-WROOM-1. Lets wire it with a 10k external pulldown resistor. While the EN pin is low, the output voltage is 0v as expected. However, when the EN pin is raised, the external voltage rises to abo...
by Hello1024
Fri Apr 26, 2024 11:31 am
Forum: ESP-IDF
Topic: HTTP Client: What happens if the server response is too large?
Replies: 7
Views: 2100

Re: HTTP Client: What happens if the server response is too large?

Looks like this project does it: https://github.com/kazuho/picojson/blob/master/examples/streaming.cc Your code will have to be pretty customized to pull out the values needed sadly. That example can already parse json bigger than RAM as long as it is in the form of: [ {"x": "hello", "y": "test", "o...
by Hello1024
Thu Apr 25, 2024 7:41 pm
Forum: ESP-IDF
Topic: HTTP Client: What happens if the server response is too large?
Replies: 7
Views: 2100

Re: HTTP Client: What happens if the server response is too large?

Worth noting that it is also possible to parse json in chunks, keeping the state of the decoder between chunks.

So it's easily possible to process a 1MB JSON file downloded over HTTP with the available RAM, as long as the fields you need from the json are themselves small.
by Hello1024
Thu Apr 25, 2024 6:47 pm
Forum: ESP-IDF
Topic: Host software to use esp_apptrace_fopen()?
Replies: 0
Views: 461

Host software to use esp_apptrace_fopen()?

If I run esp_apptrace_fopen(ESP_APPTRACE_DEST_TRAX, "apptrace.txt", "w"); , and write some data on the target, and esp apptrace start file://testing.txt from the openocd console, the data I wrote doesn't end up in the file on the host. In fact, the testing.txt file ends up with the content "\0apptra...