2020-10-25 20:48:57 +01:00
|
|
|
/*
|
|
|
|
***************************************************************************
|
|
|
|
** Program : OTGW-firmware.h
|
|
|
|
** Version : v0.0.1
|
|
|
|
**
|
|
|
|
** Copyright (c) 2020 Robert van den Breemen
|
|
|
|
** Borrowed from OpenTherm library from:
|
|
|
|
** https://github.com/jpraus/arduino-opentherm
|
|
|
|
**
|
|
|
|
** TERMS OF USE: MIT License. See bottom of file.
|
|
|
|
***************************************************************************
|
|
|
|
*/
|
2020-10-25 20:35:34 +01:00
|
|
|
|
|
|
|
//#include <ESP8266WiFi.h>
|
|
|
|
|
|
|
|
#include <ezTime.h> // https://github.com/ropg/ezTime
|
|
|
|
#include <TelnetStream.h> // https://github.com/jandrassy/TelnetStream/commit/1294a9ee5cc9b1f7e51005091e351d60c8cddecf
|
|
|
|
#include <ArduinoJson.h> // https://arduinojson.org/
|
|
|
|
#include "Debug.h"
|
|
|
|
#include "safeTimers.h"
|
|
|
|
#include "networkStuff.h"
|
|
|
|
#include "OTGWStuff.h"
|
|
|
|
#include "Wire.h"
|
|
|
|
|
|
|
|
|
|
|
|
#define SETTINGS_FILE "/settings.ini"
|
|
|
|
#define CMSG_SIZE 512
|
|
|
|
#define JSON_BUFF_MAX 1024
|
|
|
|
|
|
|
|
bool Verbose = false;
|
|
|
|
char cMsg[CMSG_SIZE];
|
|
|
|
char fChar[10];
|
|
|
|
String lastReset = "";
|
|
|
|
uint32_t blinkyTimer;
|
|
|
|
char settingHostname[41];
|
|
|
|
uint32_t upTimeSeconds=0;
|
|
|
|
Timezone CET;
|
|
|
|
|
|
|
|
const char *weekDayName[] { "Unknown", "Zondag", "Maandag", "Dinsdag", "Woensdag"
|
|
|
|
, "Donderdag", "Vrijdag", "Zaterdag", "Unknown" };
|
|
|
|
const char *flashMode[] { "QIO", "QOUT", "DIO", "DOUT", "Unknown" };
|
|
|
|
|
|
|
|
// eof
|