убераем лишние serial print

This commit is contained in:
Dmitry Borisenko
2022-09-18 22:48:27 +02:00
parent 2f2e2d9755
commit e1b4ffa574
5 changed files with 10 additions and 13 deletions

View File

@@ -402,7 +402,7 @@
"num": 30 "num": 30
}, },
{ {
"name": "31. Кнопка управляющая пином (Реле)", "name": "31. Управление пином",
"type": "Writing", "type": "Writing",
"subtype": "ButtonOut", "subtype": "ButtonOut",
"id": "btn", "id": "btn",
@@ -455,16 +455,18 @@
"num": 34 "num": 34
}, },
{ {
"name": "35. PWM ESP8266", "name": "35. PWM ESP32",
"type": "Writing", "type": "Writing",
"subtype": "Pwm8266", "subtype": "Pwm32",
"id": "pwm", "id": "pwm",
"widget": "range", "widget": "range",
"page": "Кнопки", "page": "Кнопки",
"descr": "PWM", "descr": "PWM",
"int": 0, "int": 0,
"pin": 15, "pin": 2,
"freq": 5000, "freq": 5000,
"ledChannel": 2,
"PWM_resolution": 10,
"val": 0, "val": 0,
"apin": -1, "apin": -1,
"num": 35 "num": 35

View File

@@ -21,7 +21,7 @@
}, },
"projectProp": { "projectProp": {
"platformio": { "platformio": {
"default_envs": "esp8266_4mb", "default_envs": "esp32_4mb",
"data_dir": "data_svelte" "data_dir": "data_svelte"
} }
}, },

View File

@@ -41,7 +41,7 @@ build_src_filter =
${env:esp32_4mb_fromitems.build_src_filter} ${env:esp32_4mb_fromitems.build_src_filter}
[platformio] [platformio]
default_envs = esp8266_4mb default_envs = esp32_4mb
data_dir = data_svelte data_dir = data_svelte
[common_env_data] [common_env_data]

View File

@@ -22,7 +22,7 @@ void* getAPI_ButtonOut(String subtype, String params);
void* getAPI_IoTServo(String subtype, String params); void* getAPI_IoTServo(String subtype, String params);
void* getAPI_Mcp23017(String subtype, String params); void* getAPI_Mcp23017(String subtype, String params);
void* getAPI_Mp3(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_TelegramLT(String subtype, String params);
void* getAPI_Lcd2004(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_IoTServo(subtype, params)) != nullptr) return tmpAPI;
if ((tmpAPI = getAPI_Mcp23017(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_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_TelegramLT(subtype, params)) != nullptr) return tmpAPI;
if ((tmpAPI = getAPI_Lcd2004(subtype, params)) != nullptr) return tmpAPI; if ((tmpAPI = getAPI_Lcd2004(subtype, params)) != nullptr) return tmpAPI;
return nullptr; return nullptr;

View File

@@ -44,7 +44,6 @@ class Loging : public IoTItem {
} }
void doByInterval() { void doByInterval() {
SerialPrint("E", F("Loging"), "----------------------start loging cycle----------------------------");
//если объект логгирования не был создан //если объект логгирования не был создан
if (!isItemExist(logid)) { if (!isItemExist(logid)) {
SerialPrint("E", F("Loging"), "'" + id + "' loging object not exist, return"); SerialPrint("E", F("Loging"), "'" + id + "' loging object not exist, return");
@@ -102,7 +101,6 @@ class Loging : public IoTItem {
} }
//запускаем процедуру удаления старых файлов если память переполняется //запускаем процедуру удаления старых файлов если память переполняется
deleteLastFile(); deleteLastFile();
SerialPrint("E", F("Loging"), "----------------------compl loging cycle----------------------------");
} }
void createNewFileWithData(String &logData) { void createNewFileWithData(String &logData) {
@@ -150,8 +148,6 @@ class Loging : public IoTItem {
} }
void sendChart() { void sendChart() {
SerialPrint("E", F("Loging"), "----------------------start send chart----------------------------");
String dir = "/lg/" + id; String dir = "/lg/" + id;
filesList = getFilesList(dir); filesList = getFilesList(dir);
@@ -189,7 +185,6 @@ class Loging : public IoTItem {
if (noData) { if (noData) {
cleanChart(); cleanChart();
} }
SerialPrint("E", F("Loging"), "----------------------compl send chart----------------------------");
} }
void cleanChart() { void cleanChart() {