Describe the Enhancement
I would like to an example pio environment that connects to WiFi and queries a NTP server for the current timestamp and stores it as a unix epoch in uint32 format. Down the the second is sufficient, no need for ns.
Benefits
Allow for future time synchronization through the WiFi interface for accurate timestamp of measurements.
Possible Drawbacks
N/A
Additional Context
Looks like there's already a NTPClient library for Arduino (https://registry.platformio.org/libraries/arduino-libraries/NTPClient). I saw this as the most popular one on platformio. There should be instruction for adding the library to the project on the link I provided.
Describe the Enhancement I would like to an example pio environment that connects to WiFi and queries a NTP server for the current timestamp and stores it as a unix epoch in
uint32
format. Down the the second is sufficient, no need for ns.Benefits Allow for future time synchronization through the WiFi interface for accurate timestamp of measurements.
Possible Drawbacks N/A
Additional Context Looks like there's already a NTPClient library for Arduino (https://registry.platformio.org/libraries/arduino-libraries/NTPClient). I saw this as the most popular one on platformio. There should be instruction for adding the library to the project on the link I provided.