support indicator sensors through Rp2040 serial (#5696)

* support indicator sensors through Rp2040 serial

* disable excessive debug printing
This commit is contained in:
Thomas Göttgens
2024-12-30 21:28:31 +01:00
committed by GitHub
parent 3c7053c66a
commit a2a6b236b7
6 changed files with 409 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
#include "configuration.h"
#if !MESHTASTIC_EXCLUDE_ENVIRONMENTAL_SENSOR
#include "../mesh/generated/meshtastic/telemetry.pb.h"
#include "TelemetrySensor.h"
class IndicatorSensor : public TelemetrySensor
{
protected:
virtual void setup() override;
public:
IndicatorSensor();
virtual int32_t runOnce() override;
virtual bool getMetrics(meshtastic_Telemetry *measurement) override;
};
#endif