add post commands and reboot

This commit is contained in:
2025-09-10 12:32:12 +10:00
parent 5a21768b70
commit 2a0e9df0f3
3 changed files with 22 additions and 3 deletions

View File

@@ -10,7 +10,8 @@ export type DeviceCommandType =
| "ota"
| "ring_fence"
| "lights"
| "camera";
| "camera"
| "reboot";
export interface DeviceCommand {
id: number;
@@ -116,4 +117,4 @@ export async function postCommand(
headers: { "Content-Type": "application/json" },
body: JSON.stringify(command),
});
}
}