leifclaesson / ESP1588

IEEE-1588 Precision Time Protocol (PTP) client for ESP8266/ESP32
GNU General Public License v3.0
40 stars 3 forks source link

PTP library as server #1

Closed Bagh418 closed 1 year ago

Bagh418 commented 1 year ago

Hi every body, I want to know that is it possible to use this lib as PTP server? For one of my project i need to use PTP server on my esp32 and i don`t have any data about how to implement PTP server on esp. Hope somebody can help me :( Thanks a lot

leifclaesson commented 1 year ago

This library is a PTP client. It is possible to write a PTP server for ESP32, but that would be a different library altogether. In order to be useful, it would have to be a PTP grand master and that in turn needs external synchronization, such as GPS. There are already many existing PTP clock implementations in both hardware and software for different platforms, and since you only need one for an entire network of clients, the low price of an ESP32 compared to for example a Raspberry Pi does not make a big difference in the entire system cost, and so the development time and effort becomes the bigger factor.

But, if you want to write one, have at it. :)