esp_sntp_config_t config = ESP_NETIF_SNTP_DEFAULT_CONFIG_MULTIPLE(2,
ESP_SNTP_SERVER_LIST(CONFIG_SNTP_TIME_SERVER, CONFIG_BACKUP_SNTP_TIME_SERVER));
When using esp-netif for SNTP, will the first server in the list always take priority? What would cause the second server to be used? How could I ...
Search found 4 matches
- Fri May 30, 2025 3:38 pm
- Forum: ESP-IDF
- Topic: SNTP server priority
- Replies: 1
- Views: 74
- Wed May 21, 2025 5:01 pm
- Forum: ESP-IDF
- Topic: Menuconfig without full rebuild
- Replies: 1
- Views: 106
Menuconfig without full rebuild
Is there a way to run menuconfig without a full rebuild? I need to flash a bunch of devices and change a parameter that I have configured through menuconfig each time, however this triggers a full rebuild even when I change one value. I can just go change it in the source code manually but I wanted ...
- Sun May 26, 2024 2:14 am
- Forum: ESP-IDF
- Topic: Understanding when to create tasks
- Replies: 2
- Views: 1073
Re: Understanding when to create tasks
Tasks are fairly expensive to create/destroy, so the standard way is to start the task on startup and hand them work to do via multithreading primitives like the task notifications or event groups you mentioned. Event handlers are just glorified callbacks; I imagine you'd use those as well (but e ...
- Sat May 25, 2024 10:42 pm
- Forum: ESP-IDF
- Topic: Understanding when to create tasks
- Replies: 2
- Views: 1073
Understanding when to create tasks
I have an event handler attached to the IP_EVENT_STA_GOT_IP event. When it occurs, some data is exchanged over TCP and then I want the esp to run a task which periodically records and stores data from a sensor, until some other event occurs and it stops.
Should this event handler create a task ...
Should this event handler create a task ...