Add a ntp server in arduino library

Hello, it would be great if the library Blynk for Arduino could provide the date and time of an NTP server, it would be possible?

If you have an ESP8266, there’s a code library which lets you query an NTP server. You basically setup your Arduino to communicate with the ESP via serial and use some of the following code to query an NTP server.

1 Like

Good but with this I must disconnect from blynk and run this sketch, I think the hour and date already pass between server and arduino, just to reveal it and pass these values from a function

@Thomas the idea would be to include the required parts of the ntp sketch in your existing sketch.

Shure but with Blink.GetTime() or similar is more easy and It uses existing data, almost certainly the messages that are exchanged with the server contains a timestamp that can be used

Blynk has a RTC widget but I think at present it’s only available on local servers.

1 Like

Hi. RTC will be soon and you’ll be able to get time and date. At the moment we preparing app for more customization options.

1 Like

You can now use RTC widget, in the latest library and App


Cheers!

1 Like