mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
37 lines
578 B
C++
37 lines
578 B
C++
#ifdef EnableSensorAny
|
|
#pragma once
|
|
#include <Arduino.h>
|
|
|
|
#include "Global.h"
|
|
|
|
class SensorAny;
|
|
|
|
typedef std::vector<SensorAny> MySensorAnyVector;
|
|
|
|
class SensorAny {
|
|
public:
|
|
SensorAny(const String& paramsAny);
|
|
~SensorAny();
|
|
|
|
void loop();
|
|
void read();
|
|
|
|
private:
|
|
String _paramsAny;
|
|
int _interval;
|
|
float _c;
|
|
float _k;
|
|
String _key;
|
|
String _addr;
|
|
String _type;
|
|
String _val;
|
|
String _descr;
|
|
|
|
unsigned long prevMillis;
|
|
unsigned long difference;
|
|
};
|
|
|
|
extern MySensorAnyVector* mySensorAny;
|
|
|
|
extern void AnySensor();
|
|
#endif |