mirror of
https://github.com/aljazceru/meshcore-web.git
synced 2025-12-17 16:24:18 +01:00
add ability to set device name
This commit is contained in:
@@ -60,6 +60,10 @@ class Connection {
|
||||
GlobalState.contacts = await GlobalState.connection.getContacts();
|
||||
}
|
||||
|
||||
static async setAdvertName(name) {
|
||||
await GlobalState.connection.sendCommandSetAdvertName(name);
|
||||
}
|
||||
|
||||
static async syncDeviceTime() {
|
||||
const timestamp = Math.floor(Date.now() / 1000);
|
||||
await GlobalState.connection.sendCommandSetDeviceTime(timestamp);
|
||||
|
||||
Reference in New Issue
Block a user