2018-04-22 08:30:34 +00:00
|
|
|
/*
|
|
|
|
* Stairs
|
|
|
|
* Copyright 2017 (c) Mark van Renswoude
|
|
|
|
*
|
|
|
|
* https://git.x2software.net/pub/Stairs
|
|
|
|
*/
|
2018-01-01 18:56:07 +00:00
|
|
|
#ifndef __config
|
|
|
|
#define __config
|
2017-03-23 18:45:29 +00:00
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
2018-01-08 20:58:22 +00:00
|
|
|
|
2018-02-13 20:52:24 +00:00
|
|
|
// Enables debug information to be output through the standard
|
|
|
|
// Serial connection, disable in production units to improve performance
|
|
|
|
//#define SerialDebug
|
|
|
|
|
|
|
|
// Enables the crash API methods to cause crashes, you probably never
|
|
|
|
// want to leave this on unless you're debugging the exception handler
|
|
|
|
//#define EnableCrashAPI
|
|
|
|
|
2018-01-08 20:58:22 +00:00
|
|
|
|
|
|
|
#ifdef SerialDebug
|
2018-04-22 08:39:07 +00:00
|
|
|
extern const uint32_t SerialDebugBaudrate;
|
|
|
|
extern const uint32_t SerialDebugStartupDelay;
|
2018-01-08 20:58:22 +00:00
|
|
|
#endif
|
2017-04-16 11:40:34 +00:00
|
|
|
|
|
|
|
|
2018-04-22 08:39:07 +00:00
|
|
|
extern const char* ConnectionSettingsFile;
|
|
|
|
extern const char* SystemSettingsFile;
|
|
|
|
extern const char* StepsSettingsFile;
|
|
|
|
extern const char* TimeTriggerSettingsFile;
|
|
|
|
extern const char* MotionTriggerSettingsFile;
|
2018-01-04 21:53:16 +00:00
|
|
|
|
|
|
|
|
2018-04-22 08:39:07 +00:00
|
|
|
extern const char* DefaultAPSSIDPrefix;
|
2018-01-07 22:12:42 +00:00
|
|
|
|
2018-04-22 08:39:07 +00:00
|
|
|
extern const char* DefaultNTPServer;
|
2018-01-18 22:20:31 +00:00
|
|
|
|
2018-04-22 08:39:07 +00:00
|
|
|
extern const uint32_t StationModeTimeout;
|
|
|
|
extern const uint16_t APButtonHoldTime;
|
2018-01-04 21:53:16 +00:00
|
|
|
|
2018-01-16 21:07:20 +00:00
|
|
|
|
2018-04-22 08:39:07 +00:00
|
|
|
extern const uint32_t TimezoneRetryInterval;
|
2018-01-18 22:20:31 +00:00
|
|
|
|
2018-01-19 15:12:23 +00:00
|
|
|
|
|
|
|
// SSL takes quite a bit of memory (and I haven't been optimizing much),
|
|
|
|
// which seems to cause memory-related exceptions when getting the timezone
|
|
|
|
// information from Google's HTTPS API. Google requires HTTPS. The workaround
|
|
|
|
// is hosting a small proxy script on HTTP, which is included in the "hosted" folder
|
|
|
|
// of this project. Note that this completely defeats any security, and may
|
|
|
|
// cause your Google API key and location data to leak. My advice is simply to not
|
|
|
|
// specify your location too precisely :-)
|
|
|
|
//
|
|
|
|
// If you want to host your own version of the script because you don't trust
|
|
|
|
// that mine will not log anything, or want to disable the proxy script
|
|
|
|
// completely, change these definitions below. Also update platformio-buildflags.bat
|
|
|
|
// to enable SSL support in ESPAsyncTCP.
|
|
|
|
//
|
|
|
|
// If you can fix my sloppy code and get a direct SSL connection working,
|
|
|
|
// I'd be interested in the changes as well!
|
|
|
|
#define MapsAPIViaProxyScript
|
|
|
|
|
|
|
|
#ifdef MapsAPIViaProxyScript
|
2018-04-22 08:39:07 +00:00
|
|
|
extern const char* TimezoneProxyScriptHost;
|
|
|
|
extern const char* TimezoneProxyScriptPath;
|
2018-01-19 15:12:23 +00:00
|
|
|
#endif
|
|
|
|
|
2018-04-22 08:30:34 +00:00
|
|
|
|
2018-04-22 08:39:07 +00:00
|
|
|
extern const uint8_t InitialisationBrightness;
|
|
|
|
extern const uint8_t InitialisationFadeTime;
|
|
|
|
extern const uint8_t InitialisationBlinkCount;
|
2018-04-22 08:30:34 +00:00
|
|
|
|
2017-03-23 18:45:29 +00:00
|
|
|
#endif
|