Commit Graph

6 Commits

Author SHA1 Message Date
Tony 0c662ecdc3 Enhance DALI communication: introduce DaliQueryResult structure, update query handling, and improve logging of query results
Signed-off-by: Tony <tonylu@tony-cloud.com>
2026-05-21 13:22:15 +08:00
Tony 1550ab15d6 Enhance bridge operation handling and improve JSON conversion
- Added new bridge operations to the bridgeOperationToString and bridgeOperationFromString functions for better command recognition.
- Implemented a fromCjson function to convert cJSON objects to DaliValue, supporting various data types including arrays and objects.
- Introduced isKnownBridgeRequestKey function to filter out unknown keys in bridge requests.
- Refactored handleDownlink to utilize the new fromCjson function for value and metadata extraction, improving code clarity and maintainability.
- Updated response creation to use a more structured approach with DaliValue's toJson method.

Signed-off-by: Tony <tonylu@tony-cloud.com>
2026-05-04 09:45:15 +08:00
Tony 16907857c0 Enhance DALI interface: add gateway parameter to scene and color methods for improved command handling 2026-05-02 21:32:39 +08:00
Tony 9e1244712d Refactor DALI command handling: streamline send methods and enhance scene color reporting
Co-authored-by: Copilot <copilot@github.com>
2026-04-28 17:32:32 +08:00
Tony 32e7329b3e Enhance DALI device type discovery and query handling
- Introduce DaliDeviceTypeDiscovery struct for managing device type queries.
- Implement discoverDeviceTypes method in DaliBase for improved device type detection.
- Update DaliComm to handle query responses more robustly, including handling multiple device replies.
- Add setDetectedDeviceTypes method in DaliDevice to manage detected device types and capabilities.
2026-04-25 12:59:16 +08:00
Tony 7e8ac7f566 initial commit 2026-03-26 12:04:08 +08:00