mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 09:31:20 -04:00
things
This commit is contained in:
@@ -26,6 +26,8 @@ const SessionContext = createContext({
|
||||
setAdminReason: async () => {},
|
||||
rebootRover: async () => {},
|
||||
rebootServer: async () => {},
|
||||
playTestAudio: async () => {},
|
||||
stopTestAudio: async () => {},
|
||||
llmControl: async () => {},
|
||||
});
|
||||
|
||||
@@ -141,6 +143,8 @@ export function SessionProvider({ children }) {
|
||||
rebootRover: (roverId) =>
|
||||
emitWithAck('command', { roverId, type: 'reboot', data: { reboot: {} } }),
|
||||
rebootServer: () => emitWithAck('server:reboot'),
|
||||
playTestAudio: (roverId) => emitWithAck('audio:testPlay', { roverId }),
|
||||
stopTestAudio: (roverId) => emitWithAck('audio:testStop', { roverId }),
|
||||
llmControl: (action, controls = {}) =>
|
||||
emitWithAck('llm:control', { controls: { action, ...controls } }),
|
||||
pushAlert: (alert) =>
|
||||
|
||||
Reference in New Issue
Block a user