Files
IoTManager/src/Global.cpp

64 lines
1.1 KiB
C++
Raw Normal View History

2020-09-02 22:34:49 +03:00
#include "Global.h"
#ifdef WS_enable
AsyncWebSocket ws;
//AsyncEventSource events;
#endif
2020-10-20 23:58:23 +03:00
2020-09-02 22:34:49 +03:00
TickerScheduler ts(TEST + 1);
WiFiClient espClient;
PubSubClient mqtt(espClient);
StringCommand sCmd;
AsyncWebServer server(80);
OneWire *oneWire;
DallasTemperature sensors;
/*
* Global vars
*/
boolean just_load = true;
2020-11-05 02:23:08 +03:00
boolean telegramInitBeen = false;
2020-09-02 22:34:49 +03:00
// Json
String configSetupJson = "{}";
String configLiveJson = "{}";
String configOptionJson = "{}";
// Mqtt
String chipId = "";
String prex = "";
String all_widgets = "";
String scenario = "";
//orders and events
String orderBuf = "";
String eventBuf = "";
String itemsFile = "";
String itemsLine = "";
2020-11-02 01:21:51 +03:00
//key lists and numbers
String impulsKeyList = "";
int impulsEnterCounter = -1;
2020-09-02 22:34:49 +03:00
// Sensors
2020-10-20 22:55:45 +03:00
String sensorReadingMap10sec;
2020-10-20 23:58:23 +03:00
String sensorReadingMap30sec;
2020-09-02 22:34:49 +03:00
// Logging
2020-11-02 01:21:51 +03:00
String loggingKeyList;
2020-09-02 22:34:49 +03:00
int enter_to_logging_counter;
2020-10-31 21:07:49 +03:00
// Upgrade
2020-11-01 02:52:57 +03:00
String serverIP;
2020-10-31 21:07:49 +03:00
2020-09-02 22:34:49 +03:00
// Scenario
int scenario_line_status[] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
2020-09-17 21:33:54 +03:00
int lastVersion;
2020-09-03 23:29:34 +03:00
2020-09-02 22:34:49 +03:00
boolean busScanFlag = false;
boolean fsCheckFlag = false;
boolean delElementFlag = false;