Search found 43 matches

by Gilbert
Sat Mar 14, 2026 2:28 pm
Forum: ESP32 Arduino
Topic: FreeRTOS questions
Replies: 3
Views: 271

Re: FreeRTOS questions

Thanks for the clear explanations.
by Gilbert
Thu Mar 12, 2026 1:51 pm
Forum: ESP32 Arduino
Topic: FreeRTOS questions
Replies: 3
Views: 271

FreeRTOS questions

I'm not familiar at all with FreeRTOS, please excuse if I'm asking silly questions. Arduino IDE 2.3.8.
I'm using FreeRTOS Xtimer to read sensor data once per second. When I look around on the Web, I see that I should include "FreeRTOS.h" in my code. The example I'm following (Random Nerd Tuto's ...
by Gilbert
Sat Nov 09, 2024 3:55 pm
Forum: ESP32 Arduino
Topic: sntp library
Replies: 2
Views: 2367

Re: sntp library

My bad. I made 2 mistakes:
1 - I selected the wrong board (Teensy iso ESP32)
2 - In my old code I inluded "lwip/apps/sntp.h". Found out that this lib is deprecated. Replacement is "esp_sntp.h".
Now my sketch compiles without errors.

Thanks for looking into this.
by Gilbert
Fri Nov 08, 2024 4:24 pm
Forum: ESP32 Arduino
Topic: sntp library
Replies: 2
Views: 2367

sntp library

There are 2 versions of the sntp library in Arduino. I just re-installed the Arduino IDE (v 2.3.3) and the ESP libraries for Arduino.
I had the same problem using the previous version of the IDE.
The problem is the the sntp.h files have contradicing declarations for the function sntp ...
by Gilbert
Wed Mar 27, 2024 8:32 pm
Forum: ESP32 Arduino
Topic: WiFi.setAutoReconnect function
Replies: 3
Views: 6630

Re: WiFi.setAutoReconnect function

Thanks for the clarification. Bottom line is that I have to monitor the connection state by my own code and I cannot rely 100 % on the automatic reconnection.
I also assume that having a wifi connection does not warrant that I'm connected to the internet, right? I'm not sure what my router does ...
by Gilbert
Wed Mar 27, 2024 2:39 pm
Forum: ESP32 Arduino
Topic: WiFi.setAutoReconnect function
Replies: 3
Views: 6630

WiFi.setAutoReconnect function

Hello,
I'm new to ESP32 WiFi and I'm exploring some of the features.
When I set AutoReconnect to 'true' using the WiFi.setAutoReconnect() function I expect that ESP32 will immediately attempt to re-establish the WiFi connection when that connection is lost. To test this, I used the function WiFi ...
by Gilbert
Fri Mar 01, 2024 2:39 pm
Forum: ESP32 Arduino
Topic: IDF version for Arduino IDE 2.3.2
Replies: 1
Views: 4231

IDF version for Arduino IDE 2.3.2

My Arduino IDE (v 2.3.2) is still using ESP IDF version 4.4.6. The latest version of IDF is 5.2.
Questions:
1. Is it possible to upgrade IDF to the lastest (or at least a more more recent) version w/o breaking the Arduino IDE?
2. Is there a significant advantage in doing this?
3. Is there a ...
by Gilbert
Fri Jan 26, 2024 3:00 pm
Forum: ESP32 Arduino
Topic: preferences.getstring with c-type char array
Replies: 4
Views: 3224

Re: preferences.getstring with c-type char array

Thanks for the advice. IMHO the getString() function is pretty useless for c-strings... (unless of course one only uses strings of a fixed length).
While we're at it: is there an easy way to get a dump of all keys in a namespace (c-code using Arduino IDE). I'm at a loss when it comes to python and ...
by Gilbert
Fri Jan 26, 2024 2:41 pm
Forum: ESP32 Arduino
Topic: preferences.getstring with c-type char array
Replies: 4
Views: 3224

Re: preferences.getstring with c-type char array

This thought just crossed my mind: maybe this is a (silly) work-around: store the c-string as a byte array using putBytes() ? Then I can get the number of bytes stored using getBytesLength() and then get the array with the actual c-string without knowing the length of the c-string...
by Gilbert
Fri Jan 26, 2024 2:32 pm
Forum: ESP32 Arduino
Topic: preferences.getstring with c-type char array
Replies: 4
Views: 3224

preferences.getstring with c-type char array


The preferences documentation points out that the function
size_t getString(const char* key, char* value, size_t len);
requires the exact length of the stored char array or else it will fail. My string has a variable length, defined by user input. Of course the char array has a fixed length, but ...

Go to advanced search