/* * strings.h * strings for IoT temperature-control * for configuration of user-data * author Creator P.Rebesky * Copyright (©): 2023 by Peter Rebesky * This code can use in private cases only. Every business or companies using of this codes or codes parts is required an approval of us (me) * Every private use can exchange some parts of code or modify some code-lines. This code can change for private use only. * This software is basicly owned by Peter Rebesky and any comercial using is forbidden without approval of us (me). * */ #ifndef GLOBAL_H_ #define GLOBAL_H_ #define OLED_CONNECT #define _oneWireBus 13 #define _ADJUST_HTTP 1000 #define _ADJUST_HTTPS 982 #define _YEAR 0 #define _MONTH 1 #define _DAY 2 #define _HOUR 3 #define _MINUTE 4 #define _SECOND 5 #define _MESZ 0 // summer-time = 1 else winter-time = 0 #define _UTCOFFSET 3600 #define _BoardTaster 0 #define _TimeOf2021 1609459260 #define _OLED_TIME_WAIT 10 int _date_time[6]; //[_YEAR][_MONTH][_DAY][_HOUR][_MINUTE][_SECOND] int _act_date_time[6]; //[_YEAR][_MONTH][_DAY][_HOUR][_MINUTE][_SECOND] uint32_t _timestamp = 0; uint32_t _previousMillis = 0; uint32_t _secondMillis =0; uint _secAdjust=1000; int _oledDisplayWait=0; int _httpMarker = 0; //int _VCC = 0; bool _sendingOK=false; float _pressure; float _temperature1=-127; float _temperature2=-127; float _temperature3=-127; float _temperature4=-127; int _numberOfSensors=0; int _showTemperature=0; //uint32_t _humidity; String _argument; String _argumentValue = "0"; String _transmitResult; //int x=0; //char temp[20]; //String _debugString; String Version = "Build 1.04 15.02.2023"; const PROGMEM char *_typeVersion = "Temp V1.04"; const PROGMEM char *_impressum = "P. Rebesky"; const char wiFiHostname[ ] = "ESP_Temperature"; const char HTTP_ANSWER[] = "HTTP/1.1 200 OK\r\nContent-Type: text/html\r\n\r\n"; const char HTTP_ANSWERJSON[] = "HTTP/1.1 200 OK\r\nAccess-Control-Allow-Origin: *\r\nContent-Type: text/json\r\n\r\n"; //header of http with mixed content, only for JSON const char HTTP_HEAD_IoT[] = "\r\n\r\n"; const char HTTP_HEAD_REFRESH[] = "\r\n\r\n"; const char HTTP_BODYSTYLE[] = ""; const char HTTP_SETUP_BUTTON[] = "

"; const char HTTP_DIV_FIELD[] = "
"; const char HTTP_TEXT_END[] ="
\n"; const byte DaysPerMonth[] = {31,28,31,30,31,30,31,31,30,31,30,31}; const char PROGMEM HTTP_JS_SCRIPT[] = ""; #endif // GLOBAL_H_