This could be the solution, I am connecting to WiFi before I set config.
https://github.com/espressif/esp-idf/blob/master/examples/protocols/sntp/main/sntp_example_main.c
* NOTE: This call should be made BEFORE esp acquires IP address from DHCP,
* otherwise NTP option would be rejected by ...
Search found 6 matches
- Mon Aug 04, 2025 6:16 pm
- Forum: ESP-IDF
- Topic: DHCP SNTP not sending packets, Not Working
- Replies: 3
- Views: 168
- Mon Aug 04, 2025 9:35 am
- Forum: ESP-IDF
- Topic: DHCP SNTP not sending packets, Not Working
- Replies: 3
- Views: 168
Re: DHCP SNTP not sending packets, Not Working
I am using a raspberry Pi with ntp install.
Here is the ntp server listening and accessing it
svvs@raspberrypi:~ $ sudo ntpdate
2025-08-04 03:32:34.269338 (-0600) -0.000003 +/- 0.000050 localhost ::1 s4 no-leap
svvs@raspberrypi:~ $ ss -lu
State Recv-Q Send-Q Local Address:Port Peer Address ...
Here is the ntp server listening and accessing it
svvs@raspberrypi:~ $ sudo ntpdate
2025-08-04 03:32:34.269338 (-0600) -0.000003 +/- 0.000050 localhost ::1 s4 no-leap
svvs@raspberrypi:~ $ ss -lu
State Recv-Q Send-Q Local Address:Port Peer Address ...
- Sun Aug 03, 2025 4:57 pm
- Forum: ESP-IDF
- Topic: DHCP SNTP not sending packets, Not Working
- Replies: 3
- Views: 168
DHCP SNTP not sending packets, Not Working
I am trying to use https_request to set time from dhcp.
I commented out code to make SNTP request to sync time every time the app starts.
I included the DHCP ACK to show that the ESP32 is receiving SNTP info, YES
I am using wireshark to see if the NTP packets are be sent to the server, NO they are ...
I commented out code to make SNTP request to sync time every time the app starts.
I included the DHCP ACK to show that the ESP32 is receiving SNTP info, YES
I am using wireshark to see if the NTP packets are be sent to the server, NO they are ...
- Sat Sep 23, 2023 5:08 pm
- Forum: General Discussion
- Topic: Writing to a memory address using I2C
- Replies: 2
- Views: 2020
Re: Writing to a memory address using I2C
Every I2C device needs a driver. The ESP I2C APi just write data to the device.
For memory read or write there is a register on the memory device that holds the memory address you want accessed.
Look at the I2C device, find the part number and then find the documentation for that part . that ...
For memory read or write there is a register on the memory device that holds the memory address you want accessed.
Look at the I2C device, find the part number and then find the documentation for that part . that ...
- Fri Sep 22, 2023 8:33 pm
- Forum: Hardware
- Topic: smalles ESP32 + lowest energy consumption?
- Replies: 3
- Views: 12834
Re: smalles ESP32 + lowest energy consumption?
Seeed Xiao ESP32C3 is a good choice. but to reduce power consumption, sleep mode is necessary.
- Thu Sep 21, 2023 8:26 pm
- Forum: ESP-IDF
- Topic: mbedtls: ssl_tls.c x509_verify_cert()returned -9984 (-0x2700)
- Replies: 0
- Views: 1797
mbedtls: ssl_tls.c x509_verify_cert()returned -9984 (-0x2700)
I am trying to use examples/https_request. I changed the server_root_cert.pem to my own CA root cert.
I created a server cert using an intermediate cert. CA root => intermediate cert => server cert.
The error -0x2700 is MBEDTLS_X509_BADCERT_CN_MISMATCH
https://forums.mbed.com/t/x509-verify-cert ...
I created a server cert using an intermediate cert. CA root => intermediate cert => server cert.
The error -0x2700 is MBEDTLS_X509_BADCERT_CN_MISMATCH
https://forums.mbed.com/t/x509-verify-cert ...