update all rovers buttone

This commit is contained in:
legop3
2026-07-13 16:03:51 -04:00
parent c742fa1c81
commit 5d8cb48fd0
8 changed files with 237 additions and 150 deletions
+4
View File
@@ -410,6 +410,10 @@ export function SessionProvider({ children }) {
// maintenance without becoming a remote shell.
updateRover: (roverId) =>
emitWithAck('command', { roverId, type: 'update', data: { update: {} } }),
// Bulk rover updates stay server-owned so the admin browser sends one
// intent, then the server checks privileges and fans out the same fixed
// update command to every currently connected rover.
updateAllRovers: () => emitWithAck('command:updateAllRovers'),
rebootServer: () => emitWithAck('server:reboot'),
playUploadedAudio: ({ roverId, name, mime, dataBase64 }) =>
emitWithAck('audio:uploadPlay', { roverId, name, mime, dataBase64 }),