Добавляем деструктор к классам модулей (исправляем ошибку)

This commit is contained in:
2022-02-25 15:24:03 +03:00
parent 9ca63882af
commit 6d7c734f46
13 changed files with 21 additions and 21 deletions

View File

@@ -58,7 +58,7 @@ class Ads1115 : public IoTItem {
}
}
~Ads1115();
~Ads1115() {};
};

View File

@@ -26,7 +26,7 @@ class Aht20t : public IoTItem {
else SerialPrint("E", "Sensor AHTt", "Error");
}
~Aht20t();
~Aht20t() {};
};
@@ -40,7 +40,7 @@ class Aht20h : public IoTItem {
else SerialPrint("E", "Sensor AHTt", "Error");
}
~Aht20h();
~Aht20h() {};
};

View File

@@ -40,7 +40,7 @@ class AnalogAdc : public IoTItem {
}
//=======================================================================================================
~AnalogAdc();
~AnalogAdc() {};
};
//после замены названия сенсора, на функцию можно не обращать внимания

View File

@@ -29,7 +29,7 @@ class Bme280t : public IoTItem {
SerialPrint("E", "Sensor Bme280t", "Error");
}
~Bme280t();
~Bme280t() {};
};
class Bme280h : public IoTItem {
@@ -49,7 +49,7 @@ class Bme280h : public IoTItem {
SerialPrint("E", "Sensor Bme280h", "Error");
}
~Bme280h();
~Bme280h() {};
};
class Bme280p : public IoTItem {
@@ -70,7 +70,7 @@ class Bme280p : public IoTItem {
SerialPrint("E", "Sensor Bme280p", "Error");
}
~Bme280p();
~Bme280p() {};
};

View File

@@ -29,7 +29,7 @@ class Bmp280t : public IoTItem {
else SerialPrint("E", "Sensor DHTt", "Error");
}
~Bmp280t();
~Bmp280t() {};
};
@@ -50,7 +50,7 @@ class Bmp280p : public IoTItem {
} else SerialPrint("E", "Sensor DHTh", "Error");
}
~Bmp280p();
~Bmp280p() {};
};

View File

@@ -47,7 +47,7 @@ class ButtonOut : public IoTItem {
}
//=======================================================================================================
~ButtonOut();
~ButtonOut() {};
};
void* getAPI_ButtonOut(String subtype, String param) {

View File

@@ -29,7 +29,7 @@ class Dht1122t : public IoTItem {
else SerialPrint("E", "Sensor DHTt", "Error");
}
~Dht1122t();
~Dht1122t() {};
};
@@ -48,7 +48,7 @@ class Dht1122h : public IoTItem {
else SerialPrint("E", "Sensor DHTh", "Error");
}
~Dht1122h();
~Dht1122h() {};
};

View File

@@ -81,7 +81,7 @@ class Ds18b20 : public IoTItem {
}
//=======================================================================================================
~Ds18b20(){};
~Ds18b20() {};
};
//после замены названия сенсора, на функцию можно не обращать внимания

View File

@@ -24,7 +24,7 @@ class GY21t : public IoTItem {
else SerialPrint("E", "Sensor GY21t", "Error");
}
~GY21t();
~GY21t() {};
};
class GY21h : public IoTItem {
@@ -38,7 +38,7 @@ class GY21h : public IoTItem {
else SerialPrint("E", "Sensor GY21h", "Error");
}
~GY21h();
~GY21h() {};
};
void* getAPI_GY21(String subtype, String param) {

View File

@@ -25,7 +25,7 @@ class Hdc1080t : public IoTItem {
else SerialPrint("E", "Sensor Hdc1080t", "Error");
}
~Hdc1080t();
~Hdc1080t() {};
};
class Hdc1080h : public IoTItem {
@@ -38,7 +38,7 @@ class Hdc1080h : public IoTItem {
else SerialPrint("E", "Sensor Hdc1080h", "Error");
}
~Hdc1080h();
~Hdc1080h() {};
};
void* getAPI_Hdc1080(String subtype, String param) {

View File

@@ -85,7 +85,7 @@ class Lcd2004 : public IoTItem {
LCDI2C->print(tmpStr);
}
~Lcd2004(){};
~Lcd2004() {};
};
void* getAPI_Lcd2004(String subtype, String param) {

View File

@@ -18,7 +18,7 @@ class Sht20t : public IoTItem {
else SerialPrint("E", "Sensor Sht20t", "Error");
}
~Sht20t();
~Sht20t() {};
};
class Sht20h : public IoTItem {
@@ -32,7 +32,7 @@ class Sht20h : public IoTItem {
else SerialPrint("E", "Sensor Sht20h", "Error");
}
~Sht20h();
~Sht20h() {};
};

View File

@@ -36,7 +36,7 @@ class SysExt : public IoTItem {
return {}; // команда поддерживает возвращаемое значения. Т.е. по итогу выполнения команды или общения с внешней системой, можно вернуть значение в сценарий для дальнейшей обработки
}
~SysExt(){};
~SysExt() {};
};
void* getAPI_SysExt(String subtype, String param) {