mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 14:42:18 +03:00
Working version
This commit is contained in:
@@ -113,4 +113,8 @@ enum ConfigType_t {
|
||||
|
||||
//13.11.2020 (SSDP OFF, UDP OFF)
|
||||
//RAM: [===== ] 46.6% (used 38208 bytes from 81920 bytes)
|
||||
//Flash: [===== ] 54.2% (used 566388 bytes from 1044464 bytes)
|
||||
//Flash: [===== ] 54.2% (used 566388 bytes from 1044464 bytes)
|
||||
|
||||
//15.11.2020 (SSDP OFF, UDP OFF)
|
||||
//RAM: [===== ] 46.1% (used 37780 bytes from 81920 bytes)
|
||||
//Flash: [===== ] 54.3% (used 566656 bytes from 1044464 bytes)
|
||||
@@ -48,4 +48,6 @@ int getOffsetInMinutes(int timezone);
|
||||
/*
|
||||
* Разбивает время на составляющие
|
||||
*/
|
||||
void breakEpochToTime(unsigned long epoch, Time_t& tm);
|
||||
void breakEpochToTime(unsigned long epoch, Time_t& tm);
|
||||
|
||||
void handle_time_init();
|
||||
@@ -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