add method to sync device time

This commit is contained in:
liamcottle 2025-04-08 14:38:38 +12:00
parent 5433f81643
commit e10db3d56c

View file

@ -981,6 +981,10 @@ class Connection extends EventEmitter {
});
}
async syncDeviceTime() {
await this.setDeviceTime(Math.floor(Date.now() / 1000));
}
importContact(advertPacketBytes) {
return new Promise(async (resolve, reject) => {
try {