mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-08 14:12:05 +00:00
28 lines
631 B
C++
28 lines
631 B
C++
#pragma once
|
|
|
|
#include "configuration.h"
|
|
|
|
#if !MESHTASTIC_EXCLUDE_ENVIRONMENTAL_SENSOR && __has_include(<RAK12035_SoilMoisture.h>) && defined(RAK_4631)
|
|
#ifndef _MT_RAK12035VBSENSOR_H
|
|
#define _MT_RAK12035VBSENSOR_H
|
|
#endif
|
|
|
|
#include "../mesh/generated/meshtastic/telemetry.pb.h"
|
|
#include "RAK12035_SoilMoisture.h"
|
|
#include "TelemetrySensor.h"
|
|
#include <Arduino.h>
|
|
|
|
class RAK12035Sensor : public TelemetrySensor
|
|
{
|
|
private:
|
|
RAK12035 sensor;
|
|
|
|
protected:
|
|
virtual void setup() override;
|
|
|
|
public:
|
|
RAK12035Sensor();
|
|
virtual int32_t runOnce() override;
|
|
virtual bool getMetrics(meshtastic_Telemetry *measurement) override;
|
|
};
|
|
#endif |