cyberman54 / ESP32-Paxcounter

Wifi & BLE driven passenger flow metering with cheap ESP32 boards
https://cyberman54.github.io/ESP32-Paxcounter/
Other
1.69k stars 397 forks source link

TTN Time Sync #948

Closed MichaelJumble closed 1 year ago

MichaelJumble commented 1 year ago

May be wrong issue here, but I struggle long time to solve it before I add this here. I try to get epoch Time of the TTN Network to synchronize the local time ESP32 node. For now, I work with the “LMIC-NODE-DEMO” Code and Down- / Uplink work fine. After grabbing the whole Internet I can’t find a working example for TTN3 to ask for TimeSync. Searching the entire Internet, and found out that the PAX Sample here with a working time sync function. The PAX Demo here works fine and also get a TimeSync from the Network.

Be sure, the PAX Code here is fantastic and written in professional style. But I can’t get it working in a simple LMIC code. Maybe someone did have an example that only covers the time sync with the TTN Network ?

cyberman54 commented 1 year ago

Please move this to tab discussions, thank you.

cyberman54 commented 1 year ago

@MichaelJumble look at this example

MichaelJumble commented 1 year ago

Your right. Its not an issue, so disc would be the right place. But at first I try out your links. Seems to look good. THX for your great job.