mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 06:32:19 +03:00
убераем лишние serial print
This commit is contained in:
@@ -22,7 +22,7 @@ void* getAPI_ButtonOut(String subtype, String params);
|
||||
void* getAPI_IoTServo(String subtype, String params);
|
||||
void* getAPI_Mcp23017(String subtype, String params);
|
||||
void* getAPI_Mp3(String subtype, String params);
|
||||
void* getAPI_Pwm8266(String subtype, String params);
|
||||
void* getAPI_Pwm32(String subtype, String params);
|
||||
void* getAPI_TelegramLT(String subtype, String params);
|
||||
void* getAPI_Lcd2004(String subtype, String params);
|
||||
|
||||
@@ -50,7 +50,7 @@ if ((tmpAPI = getAPI_ButtonOut(subtype, params)) != nullptr) return tmpAPI;
|
||||
if ((tmpAPI = getAPI_IoTServo(subtype, params)) != nullptr) return tmpAPI;
|
||||
if ((tmpAPI = getAPI_Mcp23017(subtype, params)) != nullptr) return tmpAPI;
|
||||
if ((tmpAPI = getAPI_Mp3(subtype, params)) != nullptr) return tmpAPI;
|
||||
if ((tmpAPI = getAPI_Pwm8266(subtype, params)) != nullptr) return tmpAPI;
|
||||
if ((tmpAPI = getAPI_Pwm32(subtype, params)) != nullptr) return tmpAPI;
|
||||
if ((tmpAPI = getAPI_TelegramLT(subtype, params)) != nullptr) return tmpAPI;
|
||||
if ((tmpAPI = getAPI_Lcd2004(subtype, params)) != nullptr) return tmpAPI;
|
||||
return nullptr;
|
||||
|
||||
@@ -44,7 +44,6 @@ class Loging : public IoTItem {
|
||||
}
|
||||
|
||||
void doByInterval() {
|
||||
SerialPrint("E", F("Loging"), "----------------------start loging cycle----------------------------");
|
||||
//если объект логгирования не был создан
|
||||
if (!isItemExist(logid)) {
|
||||
SerialPrint("E", F("Loging"), "'" + id + "' loging object not exist, return");
|
||||
@@ -102,7 +101,6 @@ class Loging : public IoTItem {
|
||||
}
|
||||
//запускаем процедуру удаления старых файлов если память переполняется
|
||||
deleteLastFile();
|
||||
SerialPrint("E", F("Loging"), "----------------------compl loging cycle----------------------------");
|
||||
}
|
||||
|
||||
void createNewFileWithData(String &logData) {
|
||||
@@ -150,8 +148,6 @@ class Loging : public IoTItem {
|
||||
}
|
||||
|
||||
void sendChart() {
|
||||
SerialPrint("E", F("Loging"), "----------------------start send chart----------------------------");
|
||||
|
||||
String dir = "/lg/" + id;
|
||||
filesList = getFilesList(dir);
|
||||
|
||||
@@ -189,7 +185,6 @@ class Loging : public IoTItem {
|
||||
if (noData) {
|
||||
cleanChart();
|
||||
}
|
||||
SerialPrint("E", F("Loging"), "----------------------compl send chart----------------------------");
|
||||
}
|
||||
|
||||
void cleanChart() {
|
||||
|
||||
Reference in New Issue
Block a user