mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
Переименовываем файлы базовогго класса
This commit is contained in:
34
include/classes/IoTItem.h
Normal file
34
include/classes/IoTItem.h
Normal file
@@ -0,0 +1,34 @@
|
||||
#pragma once
|
||||
|
||||
#include <WString.h>
|
||||
|
||||
class IoTItem {
|
||||
public:
|
||||
IoTItem(String parameters);
|
||||
~IoTItem();
|
||||
|
||||
void loop();
|
||||
virtual void doByInterval();
|
||||
void regEvent(String value, String consoleInfo);
|
||||
void regEvent(float value, String consoleInfo);
|
||||
|
||||
String getSubtype();
|
||||
String getID();
|
||||
|
||||
unsigned long currentMillis;
|
||||
unsigned long prevMillis;
|
||||
unsigned long difference;
|
||||
|
||||
protected:
|
||||
String _subtype;
|
||||
String _id;
|
||||
unsigned long _interval;
|
||||
|
||||
float _multiply; // умножаем на значение
|
||||
float _plus; // увеличиваем на значение
|
||||
int _map1;
|
||||
int _map2;
|
||||
int _map3;
|
||||
int _map4;
|
||||
int _round; // 1, 10, 100, 1000, 10000
|
||||
};
|
||||
Reference in New Issue
Block a user