mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-04-01 04:49:13 +03:00
19 lines
764 B
C++
19 lines
764 B
C++
|
|
#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);
|
||
|
|
}
|