Search found 39 matches

by Gilbert
Wed Mar 27, 2024 8:32 pm
Forum: ESP32 Arduino
Topic: WiFi.setAutoReconnect function
Replies: 3
Views: 3150

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 when...
by Gilbert
Wed Mar 27, 2024 2:39 pm
Forum: ESP32 Arduino
Topic: WiFi.setAutoReconnect function
Replies: 3
Views: 3150

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.dis...
by Gilbert
Fri Mar 01, 2024 2:39 pm
Forum: ESP32 Arduino
Topic: IDF version for Arduino IDE 2.3.2
Replies: 1
Views: 1035

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 dependen...
by Gilbert
Fri Jan 26, 2024 3:00 pm
Forum: ESP32 Arduino
Topic: preferences.getstring with c-type char array
Replies: 4
Views: 1531

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 I...
by Gilbert
Fri Jan 26, 2024 2:41 pm
Forum: ESP32 Arduino
Topic: preferences.getstring with c-type char array
Replies: 4
Views: 1531

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: 1531

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 th...
by Gilbert
Mon Jul 04, 2022 2:51 pm
Forum: ESP32 Arduino
Topic: Guru Meditation Error: Core 0 panic'ed (IllegalInstruction)
Replies: 2
Views: 8453

Re: Guru Meditation Error: Core 0 panic'ed (IllegalInstruction)

Nice catch! Indeed, ADC1_CHANNEL_6 is defined in driver/adc.h as number 6 and I wrongly assumed that it was the equivalent of GPIO_NUM_34. Consequently my code was messing with GPIO6, which is part of the Flash interface. No wonder that my ESP did crazy things.
Thanks.
by Gilbert
Mon Jul 04, 2022 9:35 am
Forum: ESP32 Arduino
Topic: Guru Meditation Error: Core 0 panic'ed (IllegalInstruction)
Replies: 2
Views: 8453

Guru Meditation Error: Core 0 panic'ed (IllegalInstruction)

I'm using ESP32 DEVkit C, chip version 1. ESP Arduino library version 1.0.6 Arduino IDE version 1.8.13 Problem description: I'm getting input from the serial monitor (through USB) into my application. Since the length of the input is variable, I use the function "Serial.readBytesUntil('\n', incoming...
by Gilbert
Fri Jan 21, 2022 9:11 am
Forum: Hardware
Topic: ESP32 CAN controller
Replies: 3
Views: 5023

Re: ESP32 CAN controller

Thank you. RTOS is not my forte, hence my lack of understanding.
by Gilbert
Mon Jan 17, 2022 12:16 pm
Forum: Hardware
Topic: ESP32 CAN controller
Replies: 3
Views: 5023

ESP32 CAN controller

I'm considering to use the intgrated CAN controller which in the new chip version supports lower bit times (down to 60 µs). I looked at example code and they all use a polling mechanism to find out about received messages. Is there no interrupt mechanism to announce the arrival of new messages, comp...