OTGW-firmware/OTGW-firmware.h

50 lines
1.6 KiB
C
Raw Normal View History

2020-10-25 20:48:57 +01:00
/*
***************************************************************************
** Program : OTGW-firmware.h
2020-12-13 19:36:14 +01:00
** Version : v0.4.2
2020-10-25 20:48:57 +01:00
**
** Copyright (c) 2020 Robert van den Breemen
**
** TERMS OF USE: MIT License. See bottom of file.
***************************************************************************
*/
//#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
2020-10-25 22:56:18 +01:00
WiFiClient wifiClient;
2020-10-25 23:25:49 +01:00
bool Verbose = false;
char cMsg[CMSG_SIZE];
char fChar[10];
String lastReset = "";
char settingHostname[41];
uint32_t upTimeSeconds=0;
2020-11-16 23:20:30 +01:00
uint32_t rebootCount=0;
Timezone CET;
const char *weekDayName[] { "Unknown", "Zondag", "Maandag", "Dinsdag", "Woensdag"
, "Donderdag", "Vrijdag", "Zaterdag", "Unknown" };
const char *flashMode[] { "QIO", "QOUT", "DIO", "DOUT", "Unknown" };
2020-10-25 22:56:18 +01:00
//MQTT settings
2020-10-25 23:25:49 +01:00
String settingMQTTbroker= "192.168.88.254";
2020-10-25 22:56:18 +01:00
int32_t settingMQTTbrokerPort = 1883;
String settingMQTTuser = "";
String settingMQTTpasswd = "";
String settingMQTTtopTopic = "OTGW";
int32_t settingMQTTinterval = 10;
// eof