Page 1 of 1

ESP8266 REQUEST NTP SERVER DATE & TIME

Posted: Mon Jun 07, 2021 11:25 am
by kabouras_33
Hello everyone!!
I am trying to find a way to retrieve time from NTP server (e.g. "pool.ntp.org",port:123) using pic 18f67k22 and esp01.
The project is running well but we try to add a UDP request of 48bytes in order to receive the date, time in order to update our RTC.
If anyone has any informations on how to start it will be much appreciated.

Re: ESP8266 REQUEST NTP SERVER DATE & TIME

Posted: Wed Jun 09, 2021 12:11 pm
by Benj
Hello,

I beleive in this document is some theory on how to do the request etc though it's not specifically tailored to the ESP8266.
https://www.matrixtsl.com/resources/fil ... ternet.pdf

The associated files are here.
https://www.matrixtsl.com/resources/fil ... 0Files.zip

Let us know how you're getting on.