Nodemcu sntp accuracy
Posted: Mon Jun 13, 2016 2:32 pm
Hi
I am developing a sports event timing system where I was planning to use ESP-12 boards for sending gpio event timestamps via mqtt to a central timekeeping system. While testing with two ESP-01 boards which both fetch the time (every 60 seonds) using sntp I found out that the times seem to have some tiny variation.
This would not be a problem when we use the same board for start and stop times, but sometimes we need to have two lines (and boards). The other sending the start timestamp and the other the end. I was hoping that sntp.sync() would keep my devices in required (1 ms) precision, but it looks like it does not. I use the rtctime.get() function to read the time on gpio trig event.
Any ideas? I even googled a full ntp lua client with drift handling, but no luck
oiv
I am developing a sports event timing system where I was planning to use ESP-12 boards for sending gpio event timestamps via mqtt to a central timekeeping system. While testing with two ESP-01 boards which both fetch the time (every 60 seonds) using sntp I found out that the times seem to have some tiny variation.
This would not be a problem when we use the same board for start and stop times, but sometimes we need to have two lines (and boards). The other sending the start timestamp and the other the end. I was hoping that sntp.sync() would keep my devices in required (1 ms) precision, but it looks like it does not. I use the rtctime.get() function to read the time on gpio trig event.
Any ideas? I even googled a full ntp lua client with drift handling, but no luck
oiv