2018-01-01 18:56:07 +00:00
|
|
|
/*
|
|
|
|
* Stairs
|
|
|
|
* Copyright 2017 (c) Mark van Renswoude
|
|
|
|
*
|
|
|
|
* https://git.x2software.net/pub/Stairs
|
|
|
|
*/
|
|
|
|
#ifndef __global
|
|
|
|
#define __global
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <IPAddress.h>
|
2018-01-16 21:07:20 +00:00
|
|
|
#include <NTPClient.h>
|
2018-01-14 20:31:37 +00:00
|
|
|
#include "./settings/connection.h"
|
|
|
|
#include "./settings/system.h"
|
|
|
|
#include "./settings/steps.h"
|
|
|
|
#include "./settings/triggers/time.h"
|
|
|
|
#include "./settings/triggers/motion.h"
|
|
|
|
#include "./stairs.h"
|
2018-01-01 18:56:07 +00:00
|
|
|
|
|
|
|
extern ConnectionSettings* connectionSettings;
|
|
|
|
extern bool connectionSettingsChanged;
|
2018-01-03 20:44:34 +00:00
|
|
|
|
2018-01-08 20:58:22 +00:00
|
|
|
extern SystemSettings* systemSettings;
|
|
|
|
extern bool systemSettingsChanged;
|
|
|
|
|
2018-01-04 21:53:16 +00:00
|
|
|
extern StepsSettings* stepsSettings;
|
|
|
|
extern bool stepsSettingsChanged;
|
|
|
|
|
2018-01-10 20:04:55 +00:00
|
|
|
extern TimeTriggerSettings* timeTriggerSettings;
|
|
|
|
extern bool timeTriggerSettingsChanged;
|
|
|
|
|
2018-01-14 20:31:37 +00:00
|
|
|
extern MotionTriggerSettings* motionTriggerSettings;
|
|
|
|
extern bool motionTriggerSettingsChanged;
|
|
|
|
|
2018-01-10 20:04:55 +00:00
|
|
|
|
2018-01-04 21:53:16 +00:00
|
|
|
extern Stairs* stairs;
|
|
|
|
|
2018-01-03 20:44:34 +00:00
|
|
|
extern bool shouldReboot;
|
|
|
|
|
2018-01-01 18:56:07 +00:00
|
|
|
extern uint32_t currentTime;
|
|
|
|
|
2018-01-16 21:07:20 +00:00
|
|
|
extern NTPClient* ntpClient;
|
2018-01-18 22:20:31 +00:00
|
|
|
extern bool hasTimezone;
|
|
|
|
extern uint32_t timezoneOffset;
|
2018-01-16 21:07:20 +00:00
|
|
|
|
2018-01-01 18:56:07 +00:00
|
|
|
extern IPAddress emptyIP;
|
|
|
|
|
|
|
|
#endif
|