ESP8266 REQUEST NTP SERVER DATE & TIME

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
kabouras_33
Posts: 128
Joined: Thu Jul 27, 2017 5:23 am
Has thanked: 8 times
Been thanked: 8 times
Contact:

ESP8266 REQUEST NTP SERVER DATE & TIME

Post 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.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: ESP8266 REQUEST NTP SERVER DATE & TIME

Post 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.

Post Reply