2020-11-04 23:48:21 +03:00
|
|
|
#include "BufferExecute.h"
|
2020-09-03 01:12:43 +03:00
|
|
|
#include "items/OutputTextClass.h"
|
2020-09-02 23:37:11 +03:00
|
|
|
//===============================================Модуль вывода текста============================================
|
|
|
|
|
//output-text;id;anydata;Вывод;Сигнализация;order;st[Обнаружено.движение]
|
|
|
|
|
//===============================================================================================================
|
2020-09-03 02:07:12 +03:00
|
|
|
OutputTextClass myOutputText;
|
2020-09-02 23:37:11 +03:00
|
|
|
void textOut() {
|
2020-09-03 02:07:12 +03:00
|
|
|
myOutputText.update();
|
|
|
|
|
String key = myOutputText.gkey();
|
2020-09-02 23:37:11 +03:00
|
|
|
sCmd.addCommand(key.c_str(), textOutSet);
|
2020-09-03 02:07:12 +03:00
|
|
|
myOutputText.OutputModuleStateSetDefault();
|
|
|
|
|
myOutputText.clear();
|
2020-09-02 23:37:11 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void textOutSet() {
|
|
|
|
|
String key = sCmd.order();
|
|
|
|
|
String state = sCmd.next();
|
2020-09-03 02:07:12 +03:00
|
|
|
myOutputText.OutputModuleChange(key, state);
|
2020-09-02 23:37:11 +03:00
|
|
|
}
|