add ability to set device name

This commit is contained in:
liamcottle
2025-02-13 02:00:07 +13:00
parent 928bd45d81
commit 675885766d
2 changed files with 46 additions and 4 deletions

View File

@@ -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);