Search found 94 matches

by Craige Hales
Tue Feb 15, 2022 12:58 am
Forum: ESP-IDF
Topic: [SOLVED] Error when scanning WiFi with AP enabled
Replies: 6
Views: 5805

Re: Error when scanning WiFi with AP enabled

Well spotted. ~1000 bytes I think.
by Craige Hales
Mon Feb 14, 2022 4:27 pm
Forum: ESP-IDF
Topic: [SOLVED] Error when scanning WiFi with AP enabled
Replies: 6
Views: 5805

Re: Error when scanning WiFi with AP enabled

Add print statements to narrow down what happens just before

Code: Select all

***ERROR*** A stack overflow in task main has been detected.
Might be unintended recursion.
by Craige Hales
Tue Feb 08, 2022 2:25 pm
Forum: General Discussion
Topic: Range of esp32-wrover module without external antenna?
Replies: 1
Views: 2528

Re: Range of esp32-wrover module without external antenna?

Not an actual test, but using them in my house, 50 feet (15 meters) maybe. These are the printed circuit antenna devices. I think they hear better than they transmit. At one point I tried reducing the Tx power and could not connect via the house router, so I left the Tx power at the max.
by Craige Hales
Sat Feb 05, 2022 1:37 am
Forum: ESP32 Arduino
Topic: When i pass the "nullptr" as constructor argument, i get "Guru Meditation Error: Core 1 panic'ed (LoadProhibited)." erro
Replies: 3
Views: 2779

Re: When i pass the "nullptr" as constructor argument, i get "Guru Meditation Error: Core 1 panic'ed (LoadProhibited)."

m_csv is uninitialized for that code path; you should at least set it to null. Something shortly after the return may be trying to use it.
Is there a destructor? or a copy constructor? Do they try to free the memory m_csv points to?
by Craige Hales
Sun Jan 30, 2022 12:25 am
Forum: General Discussion
Topic: esp_ota_begin() hangs
Replies: 3
Views: 4086

Re: esp_ota_begin() hangs

I'm using this with good results otaPartition = esp_ota_get_next_update_partition(NULL); rc = esp_ota_begin(otaPartition, OTA_SIZE_UNKNOWN, &otaHandle); // we know the size, but unknown erases all then, in the receive loop, rc = esp_ota_write(otaHandle, buf, received); finally if(!badUpdate){ rc = e...
by Craige Hales
Sun Jan 16, 2022 11:57 am
Forum: ESP-IDF
Topic: SNTP accuracy
Replies: 3
Views: 3476

Re: SNTP accuracy

I think the esp's default SNTP sync interval is an hour. The clocks could easily drift apart 100ms in an hour.

https://en.wikipedia.org/wiki/Network_T ... ol#History was a fun read.
by Craige Hales
Wed Jan 12, 2022 3:35 am
Forum: General Discussion
Topic: ESP32 webserver from SPIFFS
Replies: 9
Views: 11491

Re: ESP32 webserver from SPIFFS

by Craige Hales
Sat Oct 09, 2021 8:50 pm
Forum: ESP32 Arduino
Topic: how to calculate free ram?
Replies: 4
Views: 7630

Re: how to calculate free ram?

Thanks! The largest free block seems more useful to report than what I'm currently doing.
by Craige Hales
Sat Oct 09, 2021 4:20 pm
Forum: ESP32 Arduino
Topic: how to calculate free ram?
Replies: 4
Views: 7630

Re: how to calculate free ram?

Or maybe one of these esp_get_free_heap_size() esp_get_free_internal_heap_size() esp_get_minimum_free_heap_size() I found the last one (minimum free heap) most useful. I think it tracks over time the smallest available heap; I've seen it drop to 50KB if I use the web server aggressively but it is us...
by Craige Hales
Tue Sep 14, 2021 1:57 pm
Forum: ESP-IDF
Topic: sntp: how to know if the time sync is done properly
Replies: 14
Views: 13153

Re: sntp: how to know if the time sync is done properly

I don't call sntp_sync_time directly. And I don't have my own function by that name. All I do is this: sntp_setoperatingmode(SNTP_OPMODE_POLL); sntp_setservername(0, sClockState.cfgSntpUrl[0] ); // "pool.ntp.org" sntp_set_time_sync_notification_cb(time_sync_notification_cb); sntp_init(); I get the c...