update examples to sync device time

This commit is contained in:
liamcottle 2025-04-08 14:39:12 +12:00
parent e10db3d56c
commit e45527fd9a
2 changed files with 5 additions and 11 deletions

View file

@ -12,6 +12,9 @@ connection.on("connected", async () => {
// we are now connected
console.log("Connected");
// update clock on meshcore device
await connection.syncDeviceTime();
// send flood advert when connected
await connection.sendFloodAdvert();