mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 14:42:18 +03:00
Big changes. Compiling version
This commit is contained in:
@@ -3,29 +3,29 @@
|
||||
#include "Class/LineParsing.h"
|
||||
#include "Global.h"
|
||||
|
||||
class InputClass : public LineParsing {
|
||||
public:
|
||||
InputClass() : LineParsing(){};
|
||||
|
||||
void inputSetDefaultFloat() {
|
||||
inputSetFloat(_key, _state);
|
||||
}
|
||||
|
||||
void inputSetDefaultStr() {
|
||||
inputSetStr(_key, _state);
|
||||
}
|
||||
|
||||
void inputSetFloat(String key, String state) {
|
||||
eventGen2(key, state);
|
||||
jsonWriteFloat(configLiveJson, key, state.toFloat());
|
||||
publishStatus(key, state);
|
||||
}
|
||||
|
||||
void inputSetStr(String key, String state) {
|
||||
eventGen2(key, state);
|
||||
jsonWriteStr(configLiveJson, key, state);
|
||||
publishStatus(key, state);
|
||||
}
|
||||
};
|
||||
|
||||
extern InputClass myInput;
|
||||
//class InputClass : public LineParsing {
|
||||
// public:
|
||||
// InputClass() : LineParsing(){};
|
||||
//
|
||||
// void inputSetDefaultFloat() {
|
||||
// inputSetFloat(_key, _state);
|
||||
// }
|
||||
//
|
||||
// void inputSetDefaultStr() {
|
||||
// inputSetStr(_key, _state);
|
||||
// }
|
||||
//
|
||||
// void inputSetFloat(String key, String state) {
|
||||
// eventGen2(key, state);
|
||||
// jsonWriteFloat(configLiveJson, key, state.toFloat());
|
||||
// publishStatus(key, state);
|
||||
// }
|
||||
//
|
||||
// void inputSetStr(String key, String state) {
|
||||
// eventGen2(key, state);
|
||||
// jsonWriteStr(configLiveJson, key, state);
|
||||
// publishStatus(key, state);
|
||||
// }
|
||||
//};
|
||||
//
|
||||
//extern InputClass myInput;
|
||||
Reference in New Issue
Block a user