feat: new cluster protocol, event naming

This commit is contained in:
2025-10-26 12:43:22 +01:00
parent eab10cffa5
commit 0f003335b3
4 changed files with 31 additions and 19 deletions

View File

@@ -5,11 +5,10 @@
// Cluster protocol and API constants
namespace ClusterProtocol {
// Simplified heartbeat-only protocol
constexpr const char* HEARTBEAT_MSG = "CLUSTER_HEARTBEAT";
constexpr const char* NODE_UPDATE_MSG = "NODE_UPDATE";
constexpr const char* CLUSTER_EVENT_MSG = "CLUSTER_EVENT";
constexpr const char* RAW_MSG = "RAW";
constexpr const char* HEARTBEAT_MSG = "cluster/heartbeat";
constexpr const char* NODE_UPDATE_MSG = "node/update";
constexpr const char* CLUSTER_EVENT_MSG = "cluster/event";
constexpr const char* RAW_MSG = "raw";
constexpr uint16_t UDP_PORT = 4210;
// Increased buffer to accommodate larger RAW pixel streams and node info JSON over UDP
constexpr size_t UDP_BUF_SIZE = 2048;