mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 06:32:19 +03:00
Working version
This commit is contained in:
@@ -1,31 +0,0 @@
|
||||
#pragma once
|
||||
#include <Arduino.h>
|
||||
#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;
|
||||
@@ -10,17 +10,15 @@ typedef std::vector<Input> MyInputVector;
|
||||
class Input {
|
||||
public:
|
||||
|
||||
Input(String key);
|
||||
|
||||
Input(String key, String widget);
|
||||
~Input();
|
||||
|
||||
void execute(String state);
|
||||
|
||||
void execute(String value);
|
||||
|
||||
private:
|
||||
|
||||
String _key;
|
||||
|
||||
void addNewDelOldData(const String filename, size_t maxPoints, String payload);
|
||||
};
|
||||
|
||||
extern MyInputVector* myInput;
|
||||
|
||||
@@ -31,4 +31,4 @@ extern MyLoggingVector* myLogging;
|
||||
|
||||
extern void choose_log_date_and_send();
|
||||
extern void sendLogData(String file, String topic);
|
||||
extern void clean_log_date();
|
||||
extern void cleanLogAndData();
|
||||
|
||||
Reference in New Issue
Block a user