Fixed MQTT and WS Routing - w/o SSL

This commit is contained in:
2025-10-13 17:34:54 +03:00
parent f696984cd1
commit 956786321a
29 changed files with 2043 additions and 1210 deletions

View File

@@ -1,11 +1,11 @@
#include "Player.hpp"
#include "../Communication/Communication.hpp"
#include "../Communication/CommunicationRouter/CommunicationRouter.hpp"
#include "../BellEngine/BellEngine.hpp"
// Note: Removed global melody_steps dependency for cleaner architecture
// Constructor with dependencies
Player::Player(Communication* comm, FileManager* fm)
Player::Player(CommunicationRouter* comm, FileManager* fm)
: id(0)
, name("melody1")
, uid("x")
@@ -58,7 +58,7 @@ Player::Player()
, _durationTimerHandle(NULL) {
}
void Player::setDependencies(Communication* comm, FileManager* fm) {
void Player::setDependencies(CommunicationRouter* comm, FileManager* fm) {
_commManager = comm;
_fileManager = fm;
}

View File

@@ -61,7 +61,7 @@
// ═════════════════════════════════════════════════════════════════════════════════
// FORWARD DECLARATIONS - Dependencies injected at runtime
// ═════════════════════════════════════════════════════════════════════════════════
class Communication; // Command handling and communication
class CommunicationRouter; // Command handling and communication
class BellEngine; // High-precision timing engine
// ═════════════════════════════════════════════════════════════════════════════════
@@ -104,7 +104,7 @@ public:
* @param comm Pointer to communication manager
* @param fm Pointer to file manager
*/
Player(Communication* comm, FileManager* fm);
Player(CommunicationRouter* comm, FileManager* fm);
/**
* @brief Default constructor for backward compatibility
@@ -118,7 +118,7 @@ public:
* @param comm Pointer to communication manager
* @param fm Pointer to file manager
*/
void setDependencies(Communication* comm, FileManager* fm);
void setDependencies(CommunicationRouter* comm, FileManager* fm);
/**
* @brief Set BellEngine reference for precision timing
@@ -238,7 +238,7 @@ private:
// ═══════════════════════════════════════════════════════════════════════════════
// PRIVATE DEPENDENCIES AND DATA
// ═══════════════════════════════════════════════════════════════════════════════
Communication* _commManager; // 📡 Communication system reference
CommunicationRouter* _commManager; // 📡 Communication system reference
FileManager* _fileManager; // 📁 File operations reference
BellEngine* _bellEngine; // 🔥 High-precision timing engine reference