Search found 32 matches

by NIXIE_123
Tue Sep 07, 2021 6:03 pm
Forum: ESP-IDF
Topic: Searching for kind of wifimanager library
Replies: 4
Views: 4282

Re: Searching for kind of wifimanager library

Did it by myself. Used wifi-AP and http server examples
by NIXIE_123
Mon Sep 06, 2021 11:42 am
Forum: ESP-IDF
Topic: wdt reset at startup
Replies: 5
Views: 3769

Re: wdt reset at startup

i have this:

It says MAC address was invalid. I was flashing .bin from 0 to 0x400000
by NIXIE_123
Mon Sep 06, 2021 8:08 am
Forum: ESP-IDF
Topic: wdt reset at startup
Replies: 5
Views: 3769

Re: wdt reset at startup

No, I dont have more information in logging. When It happens, the esp restarts and runs in low level logging

It works when;

-I connect logging and comment out section from esp_wifi_start() to esp_wifi_stop()
-I disconnect logging. The program works fine for days and nothing wrong happens, it ...
by NIXIE_123
Sat Sep 04, 2021 11:24 am
Forum: ESP-IDF
Topic: wdt reset at startup
Replies: 5
Views: 3769

wdt reset at startup

Hi

Please help me to seek where the problem is. It mostly happens when the logging is ON.
When I disconnect the uart the code works for months!
It happens when esp connects to wifi
by NIXIE_123
Mon Aug 16, 2021 1:20 pm
Forum: ESP-IDF
Topic: Searching for kind of wifimanager library
Replies: 4
Views: 4282

Re: Searching for kind of wifimanager library

had seen this. It does not meet my requirements
by NIXIE_123
Mon Aug 16, 2021 10:48 am
Forum: ESP-IDF
Topic: Searching for kind of wifimanager library
Replies: 4
Views: 4282

Searching for kind of wifimanager library

Hi

What I want:

I'm not holding any button at startup - esp32 runs my code

I'm holding button at startup - esp32 does not run my code. It is access point.
I connect to it and type 192.168.4.1 in browser.
I see simple page where i can write ssid password and 2 more variables stored in nvs ...
by NIXIE_123
Sat Aug 14, 2021 4:19 pm
Forum: ESP-IDF
Topic: how to proper shut down wifi then turn on and reconnect to wifi
Replies: 1
Views: 2386

Re: how to proper shut down wifi then turn on and reconnect to wifi

solution: esp_err_t ret = nvs_flash_init();
if(ret == ESP_ERR_NVS_NO_FREE_PAGES || ret == ESP_ERR_NVS_NEW_VERSION_FOUND){
ESP_ERROR_CHECK(nvs_flash_erase());
ret = nvs_flash_init();
}
ESP_ERROR_CHECK(ret);
s_wifi_event_group = xEventGroupCreate();
ESP_ERROR_CHECK(esp_netif_init());
ESP_ERROR ...
by NIXIE_123
Sat Aug 14, 2021 12:19 pm
Forum: ESP-IDF
Topic: how to proper shut down wifi then turn on and reconnect to wifi
Replies: 1
Views: 2386

how to proper shut down wifi then turn on and reconnect to wifi

Hello

What i want:

Connect to wifi
esp_wifi_stop()
Reconnect to wifi
esp_wifi_stop()

For now I only connect to wifi once
esp_err_t ret = nvs_flash_init();
if(ret == ESP_ERR_NVS_NO_FREE_PAGES || ret == ESP_ERR_NVS_NEW_VERSION_FOUND){
ESP_ERROR_CHECK(nvs_flash_erase());
ret = nvs_flash_init ...
by NIXIE_123
Thu Aug 12, 2021 12:42 pm
Forum: ESP-IDF
Topic: sntp & ds3231 increase accuracy
Replies: 1
Views: 1978

Re: sntp & ds3231 increase accuracy

solution:
struct tm timeinfo = { 0 };
int retry = 0;
const int retry_count = 10;
while (sntp_get_sync_status() == SNTP_SYNC_STATUS_RESET && ++retry < retry_count) {
ESP_LOGI(TAG, "Waiting for system time to be set... (%d/%d)", retry, retry_count);
vTaskDelay(2000 / portTICK_PERIOD_MS ...
by NIXIE_123
Wed Aug 11, 2021 5:30 pm
Forum: ESP-IDF
Topic: sntp & ds3231 increase accuracy
Replies: 1
Views: 1978

sntp & ds3231 increase accuracy

Hello
if(bits & WIFI_CONNECTED_BIT){
sntp_setoperatingmode(SNTP_OPMODE_POLL);
sntp_setservername(0, "pool.ntp.org");
sntp_set_sync_mode(SNTP_SYNC_MODE_IMMED);
sntp_init();

time_t now = 0;
struct tm timeinfo = { 0 };
int retry = 0;
const int retry_count = 10;
while (sntp_get_sync_status ...

Go to advanced search