feat: MQTT integration

This commit is contained in:
2025-10-26 18:37:07 +01:00
parent 55c3aebb3f
commit 42ed391120
13 changed files with 998 additions and 3 deletions

View File

@@ -177,6 +177,11 @@ func (hs *HTTPServer) Start() error {
return hs.server.ListenAndServe()
}
// BroadcastMQTTMessage broadcasts an MQTT message through the WebSocket server
func (hs *HTTPServer) BroadcastMQTTMessage(topic string, data []byte) {
hs.webSocketServer.BroadcastMQTTMessage(topic, data)
}
// Shutdown gracefully shuts down the HTTP server
func (hs *HTTPServer) Shutdown(ctx context.Context) error {
log.Info("Shutting down HTTP server")