mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-01 04:16:24 -05:00
Adding bluetooth radio toggle to Controller. Writing controller.yaml to media drive on startup, if it doesn't exist.
This commit is contained in:
parent
9e80683b9a
commit
1c55745884
13 changed files with 624 additions and 7 deletions
|
|
@ -95,6 +95,18 @@ export async function disableThrottle() {
|
|||
return controllerFetch('/throttle/disable', {method: 'POST'});
|
||||
}
|
||||
|
||||
export async function getBluetoothStatus() {
|
||||
return controllerFetch('/bluetooth/status');
|
||||
}
|
||||
|
||||
export async function enableBluetooth() {
|
||||
return controllerFetch('/bluetooth/enable', {method: 'POST'});
|
||||
}
|
||||
|
||||
export async function disableBluetooth() {
|
||||
return controllerFetch('/bluetooth/disable', {method: 'POST'});
|
||||
}
|
||||
|
||||
export async function shutdownSystem() {
|
||||
return controllerFetch('/shutdown', {method: 'POST'});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue