mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-28 15:12:19 +03:00
working version with optimization
This commit is contained in:
@@ -3,18 +3,17 @@
|
||||
//===============================================Модуль вывода текста============================================
|
||||
//output-text;id;anydata;Вывод;Сигнализация;order;st[Обнаружено.движение]
|
||||
//===============================================================================================================
|
||||
OutputTextClass* myOutputText;
|
||||
OutputTextClass myOutputText;
|
||||
void textOut() {
|
||||
myOutputText = new OutputTextClass();
|
||||
myOutputText->update();
|
||||
String key = myOutputText->gkey();
|
||||
myOutputText.update();
|
||||
String key = myOutputText.gkey();
|
||||
sCmd.addCommand(key.c_str(), textOutSet);
|
||||
myOutputText->OutputModuleStateSetDefault();
|
||||
myOutputText->clear();
|
||||
myOutputText.OutputModuleStateSetDefault();
|
||||
myOutputText.clear();
|
||||
}
|
||||
|
||||
void textOutSet() {
|
||||
String key = sCmd.order();
|
||||
String state = sCmd.next();
|
||||
myOutputText->OutputModuleChange(key, state);
|
||||
myOutputText.OutputModuleChange(key, state);
|
||||
}
|
||||
Reference in New Issue
Block a user