m2-inno-bedpressure/services
Siwat Sirichai 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
..
AlarmManager.ts dynamic graph 2025-06-21 12:55:27 +07:00
BedHardware.ts feat: Refactor BedHardware to support both Serial and MQTT implementations 2025-06-21 14:55:10 +07:00
BedHardwareMQTT.ts feat: Refactor BedHardware to support both Serial and MQTT implementations 2025-06-21 14:55:10 +07:00
BedHardwareSerial.ts feat: Refactor BedHardware to support both Serial and MQTT implementations 2025-06-21 14:55:10 +07:00
mqttService.ts feat: Refactor BedHardware to support both Serial and MQTT implementations 2025-06-21 14:55:10 +07:00
SensorDataStorage.ts dynamic graph 2025-06-21 12:55:27 +07:00