Commit Graph

10 Commits

Author SHA1 Message Date
xlemmingx
143520822c downlink changes 2025-11-05 16:37:08 +01:00
xlemmingx
a1b9324ecc sensor reading extended; persistent lorawan frame counter 2025-11-05 12:32:11 +01:00
xlemmingx
71c0386229 various implementations to increase measurement precision and lorawan performance 2025-11-03 13:38:12 +01:00
xlemmingx
64f9d49448 Add dual temperature threshold control with MLX sensor fallback
- Add separate thresholds for room temp (21°C) and floor temp (22°C)
- Use t1/t2 downlink commands for setting thresholds
- Automatically disable floor temp monitoring if MLX sensor fails
- Relay turns off if either temperature threshold is exceeded
- Robust operation with or without floor temperature sensor
2025-10-07 19:25:15 +02:00
xlemmingx
7a6f7c46d0 Fix float output formatting in sensor readings
- Replace printf with printk using integer formatting for floats
- Add stdio.h include for proper printf support
- Fix SHT4X sensor value display issues
- Temperature and humidity values now display correctly
2025-10-07 18:53:38 +02:00
xlemmingx
c46a47e125 Add configurable temperature threshold and improved relay control
- Add temperature threshold downlink command (t + temperature)
- Update relay control: r1 0=force OFF, r1 1=enable auto control
- Temperature threshold range validation (10-35°C)
- Enhanced logging for better debugging
2025-10-07 18:32:17 +02:00
xlemmingx
1ca573e8cc Switch to ABP activation and add temperature-based relay control
- Switch from OTAA to ABP for reliable network joining
- Use SHT4X temperature sensor instead of MLX90614 internal temp
- Add automatic relay control based on 21°C threshold
- Add manual override capability via downlink commands
- Update device tree for Rev 2.1 board compatibility
- Improve logging configuration to prevent message drops
2025-10-07 17:40:57 +02:00
xlemmingx
b683a8a880 add gpio handling; add downlink handling 2025-05-28 11:22:54 +02:00
xlemmingx
607a089510 code splitting and cleaning 2025-05-23 10:48:05 +02:00
xlemmingx
bbedb8d0fd initial commit 2025-05-22 12:46:26 +02:00