passe en rainbow quand on débloque (au pif)

This commit is contained in:
Laurent 2024-11-01 21:15:40 +00:00
parent 1cf9266dcb
commit ff1b546f0c

View File

@ -194,6 +194,12 @@ client.on('message', (topic, message) => {
message: "Buzzer unlock command received.", message: "Buzzer unlock command received.",
timestamp: new Date().toISOString() timestamp: new Date().toISOString()
})); }));
// Notify the light manager to change to the team's color
client.publish('brainblast/light/change', JSON.stringify({
color: "#FFFFFF",
effect: 'rainbow'
}));
// Reset buzzer manager state // Reset buzzer manager state
buzzerActive = false; buzzerActive = false;