Official development framework for ESP32 microcontroller (as opposed to Arduino). Abbreviation for Espressif IoT Development Framework.
Questions tagged [esp-idf]
377 questions
0
votes
1 answer
RTC Static Memory in Deep Sleep on ESP32 with ESP-IDF
I am using the 8KB of static RAM on the RTC inside the ESP32 to save a small amount of sensor data to reduce power consumption by transmitting less frequently. But I am having no luck with even the simple example code:
RTC_DATA_ATTR uint32_t…

monkey
- 1,213
- 2
- 13
- 35
0
votes
1 answer
ESP-IDF VScode Monitor KeyError: 'IDF_PATH'
I have installed ESP-IDF extension on the Visual studio code on my Windows 10 machine. When I am trying to open the monitor it is throwing the following…

Ajay Ramprasad
- 29
- 8
0
votes
0 answers
Communicate with a telegram bot using https request through esp-idf
Edit: I realize that the problem was with the certificate and I was not able to add it to this example. I switch to the esp_http_client, which has a certificate (that did not work for telegram), and in there I use the https examples. I had to change…

antusystem
- 1
- 1
0
votes
2 answers
OTA for FreeRTOS for device in deep sleep from AWS
Background
I have a small battery powered system running on freeRTOS. I need to periodically run OTA updates, as per any proper internet connected device. The problem is that, being battery powered, the device spends 99.9% of it's life in deep…

monkey
- 1,213
- 2
- 13
- 35
0
votes
1 answer
esp-idf: Conditional inclusion of components with same functions
I'm working on a project which requires to develop the firmware for several esp32. All the microcontrollers share a common code that takes care of wifi and mqtt, however they all have a different behavior, which is defined in a specific component.…

icarletto
- 3
- 4
0
votes
1 answer
ESP-IDF || CORE dump
I was writing a simple program for the led blink, the program was working fine with GPIO_NUM_2 but when the led pin num is changed to GPIO_NUM_2 the program started behave oddly, and I don't know why that is happening. Please explain what mistake I…

Lawliet
- 77
- 6
0
votes
1 answer
Problem with atributte shared_ptr in class base and derived
Given something function like this:
void process() {
std::shared_ptr receiver(std::make_shared());
Command *cmd1 = new InfoCMD(receiver,10);
cmd->Execute();
delete cmd;
DELAY_MS(1000);
Command *cmd2 = new…

Jorge Arcos
- 1
- 2
0
votes
1 answer
ESP-IDF and FreeRTOS DATA Sheet CODE Compatibility
I was trying to learn ESP-IDF with FreeRTOS, and when I am using a code from the data sheet with very minimal changes
(REF code : Documentation page:53 and 54. The Board is restarting.
#include
#include "freertos/FreeRTOS.h"
#include…

Lawliet
- 77
- 6
0
votes
0 answers
No Includes directory in Project Explorer
I have just installed Eclipse CTD v2020.6 and ESP-IDF v4.1 and configured it in Windows 10. I can build and flash without any problem. But I don't know why I can't see the Includes directory in Project explore. Is it normal, if so is there any way I…

Rajesh Kumbhakar
- 59
- 7
0
votes
1 answer
esp-idf : I can't include mdebtls directory in a component
On esp32, using esp-idf, I built a module called webSocket.c/.h .
it includes
#include "esp32/sha.h"
As this module is generic, I want to put it in a component. I moved it to
"components/webSocket" directory and added a CMakeLists.txt file like…

Julien
- 846
- 1
- 7
- 19
0
votes
1 answer
Change default location of sdkconfig file
The project is based on ESP-IDF v4.
It can be built for several platforms.
Currently I'm trying to enable full out-of-source build approach and sdkconfig is the only auto-generated file that remains in the source tree. By default it is saved in the…

Maksym Lopatin
- 3
- 2
0
votes
1 answer
GitHub Actions with ESP-IDF compilation
I'd like to create a CI flow on GitHub Actions for a compilation process of my ESP-IDF-based project, over my self-hosted runner.
The ESP-IDF require exporting numerous shell variables and other shell-related tasks before the compilation. They…

galah92
- 3,621
- 2
- 29
- 55
0
votes
0 answers
Sending data to MyMqttHub through AT Commands
I've been coding a AT client using ESP32 S2 as a host and Nimbelink's Skywire Nano (nrf9160) as a LTE Modem controlled by Serial AT Commands, the LTE module is responsive and is working well. The LTE modem has an internal TCP Stack, which we have…
0
votes
2 answers
Error performing esp-idf OTA update from AWS S3
I'm trying to perform an OTA update with esp-idf by downloading firmware from an S3 bucket. I'm using the following provided snippet:
esp_http_client_config_t config = {
.url = "https://my-bucket-name-here.s3.amazonaws.com/firmware.bin",
…

rcole
- 96
- 6
0
votes
1 answer
How to send a jpg image in memory from a websocket client
I playing with a ESP32-CAM.
I have a image encoded as jpg in a struct as this
typedef struct {
uint8_t * buf; /*!< Pointer to the pixel data */
size_t len; /*!< Length of the buffer in bytes */
size_t width; …

jdk
- 11
- 3