- Thu Nov 30, 2017 4:41 pm
#72204
I am using a ESP8266 12-E NodeMCU board as the head of small group of other boards (STM32F103C8T6, Pro Mini) and everything is going very well. I wanted to use an easy library for NTP updating of the ESP8266 time and date and it is working very well also. I do not see any callbacks with the library (EasyNTPclient.h) though and wanted to use them so my code could decide what to do if connecting to an NTP server failed. Has anyone done what I am looking for? If not, could someone recommend another NTP library? I did it from scratch with the help of an example, without a library, and it worked but I got stuck because every once in awhile the NTP server would fail to send the data and I coded myself into a hole already, and was unable to retry the attempt when it failed. I had to wait for the next 5 minute update cycle to try again.
This is why I went with EasyNTPclient, so I could just set a few things and then do a simple call to update.
I hope I was not to cryptic.
Just to share, I have so far been able to OneWire with a DS18B20 temperature sensor, control WS2812B LED's (used as indicator lights), drive an OLED display, connect to my wireless LAN, handle MQTT topics/messages, all on the same board simultaneously. All I have left to do is communicate with a STM32F103C8T6 Blue Pill board, either with OneWIre or I2C, and I completed the net access head part of my project.
Thank you for your time!