Search found 7 matches

by mbastida
Thu Dec 14, 2023 2:02 pm
Forum: ESP-IDF
Topic: esp_http_client_read with offset for advanced OTA
Replies: 4
Views: 24864

Re: esp_http_client_read with offset for advanced OTA

I don't even know if it is possible on the HTTP protocol to download a file only from a certain point and not the beggining. So, the question: Is there any function similar to esp_http_client_read_offset() ? HTTP range requests can do this. You should be able to leverage this just by adding a "Rang...
by mbastida
Thu Dec 14, 2023 7:35 am
Forum: ESP-IDF
Topic: esp_http_client_read with offset for advanced OTA
Replies: 4
Views: 24864

esp_http_client_read with offset for advanced OTA

Good morning, We currently are successfully using OTA via LTE on a handful of devices pretty reliably. However, there's something with the LTE connection (or the modem library, or our own code) that makes the connection unreliable when performing OTA. To solve that we want to perfect the OTA system ...
by mbastida
Mon Apr 17, 2023 2:27 pm
Forum: ESP-IDF
Topic: Get previous running partition
Replies: 2
Views: 1152

Re: Get previous running partition

Com on espressif, you can do better!: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/kconfig.html#config-bootloader-app-test-pin-level You could at least mention it here: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/bootloader.html#boot-from-test-...
by mbastida
Mon Apr 17, 2023 2:21 pm
Forum: ESP-IDF
Topic: Get previous running partition
Replies: 2
Views: 1152

Get previous running partition

Hi, we have an aplication where we need to boot from a FACTORY/OTA partition into a TEST partition by reading a GPIO input. So when, for example, we are on FACTORY, OTA0 or OTA1 and detect the GPIO trigger we set esp_set_boot_partition() to the TEST partition and restart to apply changes. The proble...
by mbastida
Wed Sep 28, 2022 5:47 am
Forum: IDEs for ESP-IDF
Topic: Components folder with multiple subfolders
Replies: 1
Views: 3104

Components folder with multiple subfolders

Hi, I would need to better structure my code by creating subfolders in the components folder. But no matter what I try I always get errors. So far I have this structure working and compiling ocrrectly: components -component1 --component1.cpp --component1.h -component2 --component2.cpp --component2.h...
by mbastida
Fri Jul 08, 2022 11:35 am
Forum: IDEs for ESP-IDF
Topic: Multiple users working on the same code via git
Replies: 3
Views: 3982

Re: Multiple users working on the same code via git

Make sure that the ".vscode" and "build" directories aren't checked into git. They should be user-specific. Hi @gtjoseph: All right. Lets supose that user1 creates the repository and initializes the project. Said user adds BUILD and .vscode to the gitignore. Now user2 clones the repo and tries to s...
by mbastida
Wed Jul 06, 2022 7:43 am
Forum: IDEs for ESP-IDF
Topic: Multiple users working on the same code via git
Replies: 3
Views: 3982

Multiple users working on the same code via git

We are starting to develop an aplication based on the ESP32. We are two programmers that will work on the same code using git. Each of these users has installed esp-idf via vscode on the recomended path (which is C:/Users/{username}/esp). However, when user 1 git pulls the code of user2 the code giv...