Implement DALI Bridge Engine and Model Management
- Added `bridge.cpp` to handle DALI bridge operations including model management, command execution, and response formatting. - Introduced `bridge_model.cpp` for defining bridge models, value transformations, and JSON serialization/deserialization. - Created `bridge_provisioning.cpp` for managing bridge configuration storage and retrieval using NVS on ESP platform. - Enhanced `gateway_cloud.cpp` to integrate DALI bridge requests and responses with cloud communication. - Introduced `modbus_bridge.cpp` to handle Modbus-specific operations and register management. - Implemented utility functions for converting between DaliValue and cJSON formats. - Added error handling and metadata management in bridge responses.
This commit is contained in:
@@ -11,6 +11,7 @@ class ColorStatus {
|
||||
public:
|
||||
explicit ColorStatus(int status) : status_(status) {}
|
||||
|
||||
int raw() const { return status_; }
|
||||
bool xyOutOfRange() const { return (status_ & 0x01) != 0; }
|
||||
bool ctOutOfRange() const { return (status_ & 0x02) != 0; }
|
||||
bool autoCalibrationActive() const { return (status_ & 0x04) != 0; }
|
||||
|
||||
Reference in New Issue
Block a user