mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
23 lines
568 B
C++
23 lines
568 B
C++
#pragma once
|
|
#include <Arduino.h>
|
|
#include "Class/LineParsing.h"
|
|
#include "Global.h"
|
|
|
|
class OutputTextClass : public LineParsing {
|
|
public:
|
|
OutputTextClass() : LineParsing(){};
|
|
|
|
void OutputModuleStateSetDefault() {
|
|
if (_state != "") {
|
|
OutputModuleChange(_key, _state);
|
|
}
|
|
}
|
|
|
|
void OutputModuleChange(String key, String state) {
|
|
state.replace("#", " ");
|
|
eventGen2(key, state);
|
|
jsonWriteStr(configLiveJson, key, state);
|
|
publishStatus(key, state);
|
|
}
|
|
};
|
|
extern OutputTextClass myOutputText; |