Search found 300 matches
- Sun Sep 26, 2021 7:28 am
- Forum: ESP-IDF
- Topic: ESP32 SNTP broken with GMT ?
- Replies: 3
- Views: 2674
Re: ESP32 SNTP broken with GMT ?
It seems SNTP not sync successfully.
- Sun Sep 26, 2021 6:20 am
- Forum: ESP-IDF
- Topic: https request failed
- Replies: 6
- Views: 11063
Re: https request failed
Maybe you missed the esp_netif_init(), you can follow https://github.com/espressif/esp-idf/bl ... .c#L70-L73
- Fri Sep 17, 2021 1:59 am
- Forum: ESP-IDF
- Topic: sntp: how to know if the time sync is done properly
- Replies: 14
- Views: 13130
Re: sntp: how to know if the time sync is done properly
No, lwip sntp not reproduce a public API to send sntp request. As you saw, it is static and need need maintain some timeout function and state, so stopping sntp module and re-starting it is a easy way to send sntp request.
- Thu Sep 16, 2021 2:57 am
- Forum: ESP-IDF
- Topic: sntp: how to know if the time sync is done properly
- Replies: 14
- Views: 13130
Re: sntp: how to know if the time sync is done properly
Do this issue solved? If yes, i will mark it as solved. Or you can comment here when you face the similar issue.
- Wed Sep 15, 2021 7:44 am
- Forum: ESP-IDF
- Topic: sntp: how to know if the time sync is done properly
- Replies: 14
- Views: 13130
Re: sntp: how to know if the time sync is done properly
Yes, it will only deinit sntp pcb and initialize sntp pcb again, but will not change configuration you set before, such as operating mode and NTP servers.
- Wed Sep 15, 2021 7:42 am
- Forum: ESP-IDF
- Topic: WiFi + Provision working simultaneously
- Replies: 13
- Views: 14825
Re: WiFi + Provision working simultaneously
It seems the WIFI is connecting. Before you call esp_wifi_connect(), you can call esp_wifi_disconnect() first.
- Wed Sep 15, 2021 7:19 am
- Forum: ESP-IDF 中文讨论版
- Topic: HTTP 问题
- Replies: 4
- Views: 5419
Re: HTTP 问题
你需要分清 HTTP GET 和 POST 请求的差别。当我们使用 GET 请求时,我们需要发送 HTTP 头并带上 GET 请求(esp_http_client_open),此时对端会把我们请求的数据发送回来,这个时候我们调用 esp_http_client_fetch_headers 是可以读到 HTTP 头数据的。但是当我们是 POST 请求时,esp_http_client_open 只是发送了HTTP 头并带上 POST 请求,并没有发送 POST 数据,服务器是不会回的, POST 数据是后续函数 esp_http_client_write 发给服务器的。你可以把 esp_http...
- Wed Sep 15, 2021 6:50 am
- Forum: ESP-IDF
- Topic: sntp: how to know if the time sync is done properly
- Replies: 14
- Views: 13130
Re: sntp: how to know if the time sync is done properly
If I understand correctly, you want to re-send the NTP synchronization request through the API sntp_request instead of internally using a fixed time interval for time synchronization. I think you can try the sntp_restart API.
- Fri Sep 03, 2021 8:27 am
- Forum: ESP-IDF 中文讨论版
- Topic: HTTP 问题
- Replies: 4
- Views: 5419
Re: HTTP 问题
不是很明白你要表达的意思,你可以直接贴代码或者重新整理下你想要咨询的问题。
- Wed Jul 21, 2021 3:05 am
- Forum: ESP-IDF 中文讨论版
- Topic: [已解决] esp32-s2 socket 最大接收可以支持到多少?
- Replies: 2
- Views: 3104
Re: esp32-s2 socket 最大接收可以支持到多少?
这个取决你接收缓存区大小 LWIP_TCP_WND_DEFAULT.