Переходим на единый базовый класс IoTItem для всех модулей

This commit is contained in:
2022-02-06 09:11:07 +03:00
parent 73bff64a54
commit 8b83e1649c
11 changed files with 50 additions and 50 deletions

View File

@@ -1,5 +1,5 @@
#include "Global.h"
#include "Classes/IoTSensor.h"
#include "Classes/IoTItem.h"
#include "Wire.h"
#include "SHT2x.h"
@@ -7,9 +7,9 @@
SHT2x* sht = nullptr;
class Sht20t : public IoTSensor {
class Sht20t : public IoTItem {
public:
Sht20t(String parameters): IoTSensor(parameters) { }
Sht20t(String parameters): IoTItem(parameters) { }
void doByInterval() {
sht->read();
@@ -21,9 +21,9 @@ class Sht20t : public IoTSensor {
~Sht20t();
};
class Sht20h : public IoTSensor {
class Sht20h : public IoTItem {
public:
Sht20h(String parameters): IoTSensor(parameters) { }
Sht20h(String parameters): IoTItem(parameters) { }
void doByInterval() {
sht->read();