Search found 42 matches

by RMandR
Wed Nov 11, 2020 3:28 pm
Forum: General Discussion
Topic: WiFi/Internet KeepAlive - How to property maintain network connection without reboots?
Replies: 2
Views: 423

Re: WiFi/Internet KeepAlive - How to property maintain network connection without reboots?

thanks @Gardin In their code, they retry a few times and then give up: if (event_base == WIFI_EVENT && event_id == WIFI_EVENT_STA_DISCONNECTED) {if (s_retry_num < EXAMPLE_ESP_MAXIMUM_RETRY) {esp_wifi_connect();s_retry_num++;ESP_LOGI(TAG, "retry to connect to the AP");} else {xEventGroupSetBits(s_wif...
by RMandR
Tue Nov 10, 2020 12:58 am
Forum: General Discussion
Topic: WiFi/Internet KeepAlive - How to property maintain network connection without reboots?
Replies: 2
Views: 423

WiFi/Internet KeepAlive - How to property maintain network connection without reboots?

My application easily connects to the WiFi AP and the AWS IOT endpoint. This is all good, but after a few days, the device can lose wifi or IOT connection (due to power, or internet outage, AP not being always on, etc). The docs suggests that it is up to the "application" to maintain connectivity. W...
by RMandR
Mon Sep 14, 2020 4:15 pm
Forum: Hardware
Topic: how do you protect the ADC pin from battery reverse polarity?
Replies: 1
Views: 313

how do you protect the ADC pin from battery reverse polarity?

I use the ESP32 ADC to measure the battery voltage. The board has a battery boost ic which takes the voltage of the two AAs to 3.3V for ESP32. The issue is that if the batteries are inserted backwards, the VCC will not be connected, but the ADC input pin which is connected to the battery terminal wi...
by RMandR
Mon Jun 01, 2020 6:00 pm
Forum: General Discussion
Topic: Automatic Light Sleeping during long spi transactions and Gpio states
Replies: 1
Views: 841

Automatic Light Sleeping during long spi transactions and Gpio states

ePaper panels have a fairly long update delays (1 to > 4 seconds). It would be nice conserve power during the wait. When I enable automatic light sleep, esp32 is no longer able to communicate with the ePaper panel. My guess is that the GPIO pins either float during sleep or go to 0 including the res...
by RMandR
Fri May 29, 2020 8:00 pm
Forum: General Discussion
Topic: IDF 4.0 light sleep and maintaining WiFi AP connection
Replies: 2
Views: 742

Re: IDF 4.0 light sleep and maintaining WiFi AP connection

@WiFive, Thank you!

Automatic light_sleep did the trick.
by RMandR
Thu May 28, 2020 9:27 pm
Forum: General Discussion
Topic: IDF 4.0 light sleep and maintaining WiFi AP connection
Replies: 2
Views: 742

IDF 4.0 light sleep and maintaining WiFi AP connection

My app was able to stay WiFi connected to the AP without issues until I added periodic light_sleep for power saying. Essentially the same code presented in the light_sleep example: https://github.com/espressif/esp-idf/blob/master/examples/system/light_sleep/main/light_sleep_example_main.c /* Enter s...
by RMandR
Thu May 28, 2020 8:50 pm
Forum: General Discussion
Topic: Reading Certificates from Spiffs partition on the flash memory of esp32
Replies: 1
Views: 745

Re: Reading Certificates from Spiffs partition on the flash memory of esp32

@saransh.goel Have a look at this post. I asked for a similar purpose: https://esp32.com/viewtopic.php?f=13&t=12963 In my case, I ended up copying the certificate data into RAM and passing them to the APIs. It looks like you may have to do the same: https://docs.espressif.com/projects/esp-idf/en/lat...
by RMandR
Fri Mar 20, 2020 4:24 pm
Forum: General Discussion
Topic: ESP_ERR_NVS_NOT_FOUND on a namespace that does exist
Replies: 0
Views: 1656

ESP_ERR_NVS_NOT_FOUND on a namespace that does exist

There something weird happening when I try to clear the WiFi credentials on NVS: int err = nvs_flash_erase(); printf("\r\nErased NVS with: %d", err); err = nvs_flash_init(); printf("\r\ninit: %d", err); // then I try to re-save the application data nvs_handle my_handle; // Open esp_err_t err = nvs_o...
by RMandR
Fri Nov 01, 2019 5:07 pm
Forum: ESP-IDF
Topic: is copy-less read operations possible for nvs blobs?
Replies: 2
Views: 1651

is copy-less read operations possible for nvs blobs?

for aws mqtt connection, the API seems to accept only pointer memory location or fat fs paths. What's the best way of doing this if the aws cert is not embedded in the binary and stored in NVS? It seems like a waste memory to have to copy the certs and keys from NVS into memory before passing onto t...

Go to advanced search