abhijithvijayan / OpenAir

Real-time Air Quality Monitoring and Navigation System based on IoT
GNU General Public License v3.0
5 stars 0 forks source link

[publisher] attach localtimestamp to data packet #17

Open abhijithvijayan opened 4 years ago

abhijithvijayan commented 4 years ago

read time & attach it to the mqtt publisher data packet.

abhijithvijayan commented 4 years ago

This requires nodemcu connecting to internet and pulling time from it using NTP Library & UDP connection

https://stackoverflow.com/questions/40515177/how-do-you-get-a-timestamp-in-arduino-esp8266

As mqtt publisher is not directly connected to internet here(so far), this is not worth doing