Search found 2 matches
- Wed Jul 10, 2024 12:10 pm
- Forum: ESP-IDF
- Topic: SNTP sync when connected to wifi
- Replies: 0
- Views: 641
SNTP sync when connected to wifi
To sync the time I'm using the SNTP time synchronization ( https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-reference/system/system_time.html#sntp-time-synchronization ). This syncs the time every CONFIG_LWIP_SNTP_UPDATE_DELAY ms. However, if there is no network (wifi) connection, it ...
- Sat Jul 06, 2024 10:34 am
- Forum: ESP-IDF
- Topic: [SOLVED] HTTP GET, not able to read the server data
- Replies: 5
- Views: 5194
Re: HTTP GET, not able to read the server data
You can use `HTTP_EVENT_ON_DATA` from event handler registered in `esp_http_client_config_t`. Here is reference for this https://github.com/espressif/esp-idf/blob/5810ed1d043cbc54c9a7616db1e84d99f71f3ccb/examples/protocols/esp_http_client/main/esp_http_client_example.c#L63 Ok, I created the handler...