remote power button
This commit is contained in:
1 parent
d89b1c519d
commit
af091fe8f7
4 files changed
+32
-1
No files matched your search
@@ -8,6 +8,12 @@ export class ExternalControlProtocol {
|
||||
body: '',
|
||||
})
|
||||
}
|
||||
static async pressKey(key) {
|
||||
return fetch(`http://${getIp()}:8060/keypress/${key}`, {
|
||||
method: 'POST',
|
||||
body: '',
|
||||
})
|
||||
}
|
||||
|
||||
static async pressKeyUp(key) {
|
||||
console.log("Pressing key up", key)
|
||||
|
||||
Reference in new issue
Block a user