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

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"); else SerialPrint("E", "Sensor AHTt", "Error");
} }
~Aht20t(); ~Aht20t() {};
}; };
@@ -40,7 +40,7 @@ class Aht20h : public IoTItem {
else SerialPrint("E", "Sensor AHTt", "Error"); 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"); SerialPrint("E", "Sensor Bme280t", "Error");
} }
~Bme280t(); ~Bme280t() {};
}; };
class Bme280h : public IoTItem { class Bme280h : public IoTItem {
@@ -49,7 +49,7 @@ class Bme280h : public IoTItem {
SerialPrint("E", "Sensor Bme280h", "Error"); SerialPrint("E", "Sensor Bme280h", "Error");
} }
~Bme280h(); ~Bme280h() {};
}; };
class Bme280p : public IoTItem { class Bme280p : public IoTItem {
@@ -70,7 +70,7 @@ class Bme280p : public IoTItem {
SerialPrint("E", "Sensor Bme280p", "Error"); SerialPrint("E", "Sensor Bme280p", "Error");
} }
~Bme280p(); ~Bme280p() {};
}; };

View File

@@ -29,7 +29,7 @@ class Bmp280t : public IoTItem {
else SerialPrint("E", "Sensor DHTt", "Error"); else SerialPrint("E", "Sensor DHTt", "Error");
} }
~Bmp280t(); ~Bmp280t() {};
}; };
@@ -50,7 +50,7 @@ class Bmp280p : public IoTItem {
} else SerialPrint("E", "Sensor DHTh", "Error"); } 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) { void* getAPI_ButtonOut(String subtype, String param) {

View File

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

View File

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

View File

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

View File

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