Skip to content

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:

  1. A new ArduinoMemorySensor class that reads free SRAM memory from an Arduino device
  2. A ConfigurationParser class that allows loading settings from configuration files
  3. Updates to make sensors more resilient by using simulated values when hardware connections fail
  4. 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

Merge request reports

Loading