Skip to content
No description, website, or topics provided.
Other C++
  1. Other 52.9%
  2. C++ 47.1%
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

ESP8266-nist-datetime (a work in progress)


This repository contains code intended for the ESP8266. Its purpose is to demonstrate one method of keeping time on the ESP8266. This method utilizes the NIST Daytime and NIST Internet Time services.

Project Status

This project is currently a work in progress. And most of the time the master branch will build and do something.

It's guaranteed to work... unless it doesn't


I wanted to see if the ESP8266 was capable of keeping time and synchronize with NIST periodically. So after some resarch I came acroos this :

That was the starting point for the code in this repository. I've added a few lines, did some refactoring, added some comments, etc etc. It's all a blur.

But here are some highlights of what I've done so far -


You will need the following -

  • ESP8266 - I'm using a NodeMCU 1.0, and mine is a 12-E
  • Arduino IDE - Installed and made ready for use with the ESP8266
  • This application utilizes the ESP8266 SPIFFS. Please take a look at for important information before proceeding.

Running the Application

Next Steps

Additional Notes

ESP8266 Library Problems

As I was trying out different bits of code I discovered that there are a few functions that don't exist in the ESP8266 Arduino libraries. Specifically, the ones I came across were -

  • strptime()
  • sscanf()
You can’t perform that action at this time.