Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
i didn't know you're sending notes too, ok. either send all notes together or only the very imminently next note might suffice. i was sceptical about the accuracy of NTP, supposedly most libraries have an accuracy of 1second, but this particular library is supposed to reach accuracies in the milisecond range, that should work. https://github.com/gmag11/ESPNtpClient basically sending one note with NTP time in the future and wait until that times has passed ( + 20ms?), then send next note.
See this FAQ: https://github.com/FalconChristmas/Docs/blob/master/faq.md#how-do-i-set-up-multiple-pis-to-sync
Here's a complete sketch that works and calls it: esp-now-bridge-test.ino