Draft: Implement Arduino Sensor: Memory (generated with GitLab Duo Agentic Chat)
What does this MR do and why?
Summary of Changes
This merge request adds a new feature to monitor Arduino memory usage alongside the existing temperature monitoring. The key additions include:
- A new
ArduinoMemorySensorclass that reads free SRAM memory from an Arduino device - A
ConfigurationParserclass that allows loading settings from configuration files - Updates to make sensors more resilient by using simulated values when hardware connections fail
- Configuration file updates to enable the new memory monitoring feature
The changes improve the system's robustness by gracefully handling connection errors instead of crashing, and enhance flexibility through configuration-based feature enabling. The code now supports monitoring both temperature and memory metrics from connected Arduino devices, with appropriate fallbacks when hardware is unavailable.
References
Screenshots or screen recordings
| Before | After |
|---|---|
How to set up and validate locally
MR acceptance checklist
-
Styleguide -
Tests -
Documentation