I am trying to make an Indoor positioning system using ESP8266 as a beacon, how do I get the transmission package timestamp from router to ESP8266 and vice-versa?
Thank you in advance for any advice
-
what is a transmission package timestamp?jsotola– jsotola2020年03月03日 05:02:53 +00:00Commented Mar 3, 2020 at 5:02
-
it's the timestamp that's attached to a package every time it is sent from the receiver to the router or vice-versaArthane Vixtion– Arthane Vixtion2020年03月03日 05:21:23 +00:00Commented Mar 3, 2020 at 5:21
-
What do you hope to use the timestamp for?Majenko– Majenko2020年03月03日 09:41:40 +00:00Commented Mar 3, 2020 at 9:41
-
I'm going to compare the received package timestamp from ap to dongle and vice versa to get the distance between the ap and dongleArthane Vixtion– Arthane Vixtion2020年03月03日 16:01:54 +00:00Commented Mar 3, 2020 at 16:01
1 Answer 1
You can use timestamp from NTP client and attach it
Install NTPclient library from Arduino library manager This library uses WiFiUdp library to connect to the NTP server, so download that too
Then you can just update the time every time your sending/receiving something and log it as and how you see fit!
-
this answer is so wrong. it doesn't answer the question and it doesn't answer right the question I assume it answers2020年03月03日 06:38:22 +00:00Commented Mar 3, 2020 at 6:38
-
How do I access it though?Arthane Vixtion– Arthane Vixtion2020年03月03日 06:38:42 +00:00Commented Mar 3, 2020 at 6:38
-
@Juraj oh I see! maybe I misunderstood the question, I definitely didn't know what
Indoor positioning system using ESP8266 as a beacon
was! I was working on sending sensor data to database and added this NTP client to get time every time i sent data to database, so i thought the requirement was the same and hence suggested it! would love to hear your thoughts!Somasundharam Sampath– Somasundharam Sampath2020年03月03日 06:44:31 +00:00Commented Mar 3, 2020 at 6:44