mirror of
https://github.com/meshcore-dev/meshcore.js.git
synced 2026-04-20 22:13:49 +00:00
add method to sync device time
This commit is contained in:
parent
5433f81643
commit
e10db3d56c
1 changed files with 4 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue