Commit graph

7 commits

Author SHA1 Message Date
83286c318e feat: Update sensor initialization to use existing hardware values and adjust pin change handling 2025-06-21 19:12:16 +07:00
7e5ed7f26b feat: Add logging for received MQTT messages and remove mock data generation in useBedPressureData 2025-06-21 19:03:14 +07:00
738ae59c69 feat: Remove test scenario functionality and update related components for real MQTT data usage 2025-06-21 15:35:24 +07:00
fd8cacd62b feat: Refactor BedHardware to use a singleton instance and remove serial implementation 2025-06-21 15:21:32 +07:00
fb87e74ec9 feat: Refactor BedHardware to support both Serial and MQTT implementations
- Added MQTT support to BedHardware, allowing for connection to MQTT brokers.
- Created BedHardwareMQTT and BedHardwareSerial classes to handle respective connections.
- Introduced a unified BedHardwareConfig interface for configuration management.
- Implemented event forwarding from the underlying implementations to the BedHardware class.
- Added MQTT adapter for handling MQTT connections and message subscriptions.
- Updated package.json to include the mqtt library as a dependency.
- Created a singleton MQTTService for managing MQTT client instances.
- Enhanced error handling and logging throughout the BedHardware and MQTT classes.
2025-06-21 14:55:10 +07:00
5e029ff99c dynamic graph 2025-06-21 12:55:27 +07:00
a606796d9e initial commit 2025-06-21 12:09:47 +07:00