devide into files

This commit is contained in:
Dmitry Borisenko
2020-09-02 23:37:11 +03:00
parent 4a57cf69d1
commit 8a07b7cbd7
12 changed files with 290 additions and 282 deletions

19
src/items/mOutputText.cpp Normal file
View File

@@ -0,0 +1,19 @@
#include "items/itemsGlobal.h"
#include "Class/OutputModule.h"
//===============================================Модуль вывода текста============================================
//output-text;id;anydata;Вывод;Сигнализация;order;st[Обнаружено.движение]
//===============================================================================================================
void textOut() {
myText = new OutputModule();
myText->update();
String key = myText->gkey();
sCmd.addCommand(key.c_str(), textOutSet);
myText->OutputModuleStateSetDefault();
myText->clear();
}
void textOutSet() {
String key = sCmd.order();
String state = sCmd.next();
myText->OutputModuleChange(key, state);
}