Search found 5 matches

by jk1886
Thu Jun 13, 2024 11:01 am
Forum: ESP-IDF
Topic: WiFi connection loss
Replies: 1
Views: 651

Re: WiFi connection loss

It looks, that WiFi connection loss is related to backward time correction, issued by SNTP. Incidentally, SNTP sets wrong time: I (14405539) main: SNTP time=1073479200 (Wed Jan 07 2004 12:40:00 GMT+0000) This message is from sntp callback: void sntp_callback(struct timeval *_tv) { if( _tv ) { ESP_LO...
by jk1886
Sat Jun 01, 2024 9:46 am
Forum: ESP-IDF
Topic: WiFi connection loss
Replies: 1
Views: 651

WiFi connection loss

On one of the ESP32-WROOM-32D boards I have, there is a problem with periodic WiFi connection loss. After few hours of operation, wifi enters some strange state: there are no messages on console, esp_wifi_sta_get_ap_info returns status connected, but any network request hangs (http client or ping) a...
by jk1886
Wed Aug 10, 2022 7:50 pm
Forum: ESP-IDF
Topic: esp_http_client crashes esp32
Replies: 1
Views: 2381

esp_http_client crashes esp32

I've added code from esp_http_client_example.c to my stable working project. The function https_with_url is called every 30s: static void api_task(void *pvParameters) { while(1) { https_with_url(); sleep(30); } ESP_LOGI(TAG, "Finish api"); vTaskDelete(NULL); } Function just connects, without any dat...
by jk1886
Wed Aug 10, 2022 7:26 pm
Forum: ESP-IDF
Topic: Flash esp32 preserving NVS
Replies: 2
Views: 1256

Re: Flash esp32 preserving NVS

Sorry, it was my mistake in code migration from Arduino.
by jk1886
Wed Aug 03, 2022 12:51 pm
Forum: ESP-IDF
Topic: Flash esp32 preserving NVS
Replies: 2
Views: 1256

Flash esp32 preserving NVS

How can I write app image to esp32, preserving NVS ? I'm using Visual Studio Code with esp-idf under Debian.