diff --git a/library.properties b/library.properties index 34dbac9..5997637 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=CoogleIOT -version=0.2 +version=1.0.0 author=John Coggeshall maintainer=John Coggeshall sentence=An IOT library for ESP8266-12 to provide WiFi Configuration, MQTT Client, OTA updates and more. diff --git a/src/CoogleIOTConfig.h b/src/CoogleIOTConfig.h index 1a8f87a..99fc19d 100644 --- a/src/CoogleIOTConfig.h +++ b/src/CoogleIOTConfig.h @@ -3,33 +3,74 @@ //#define COOGLEIOT_DEBUG -#define COOGLEIOT_VERSION "0.2b" +#define COOGLEIOT_VERSION "1.0.0" +#ifndef COOGLEIOT_STATUS_INIT #define COOGLEIOT_STATUS_INIT 500 +#endif + +#ifndef COOGLEIOT_STATUS_WIFI_INIT #define COOGLEIOT_STATUS_WIFI_INIT 250 +#endif + +#ifndef COOGLEIOT_STATUS_MQTT_INIT #define COOGLEIOT_STATUS_MQTT_INIT 100 +#endif #define COOGLEIOT_MAGIC_BYTES "ciot" + +#ifndef COOGLEIOT_AP #define COOGLEIOT_AP "COOGLEIOT_" +#endif + +#ifndef COOGLEIOT_AP_DEFAULT_PASSWORD #define COOGLEIOT_AP_DEFAULT_PASSWORD "coogleiot" +#endif + +#ifndef COOGLEIOT_DEFAULT_MQTT_CLIENT_ID #define COOGLEIOT_DEFAULT_MQTT_CLIENT_ID "coogleIoT" +#endif +#ifndef COOGLEIOT_DEFAULT_MQTT_PORT #define COOGLEIOT_DEFAULT_MQTT_PORT 1883 +#endif +#ifndef COOGLEIOT_TIMEZONE_OFFSET #define COOGLEIOT_TIMEZONE_OFFSET ((3600 * 5) * -1) // Default Timezone is -5 UTC (America/New York) +#endif + +#ifndef COOGLEIOT_DAYLIGHT_OFFSET #define COOGLEIOT_DAYLIGHT_OFFSET 0 // seconds +#endif +#ifndef COOGLEIOT_NTP_SERVER_1 #define COOGLEIOT_NTP_SERVER_1 "pool.ntp.org" +#endif + +#ifndef COOGLEIOT_NTP_SERVER_2 #define COOGLEIOT_NTP_SERVER_2 "time.nist.gov" +#endif + +#ifndef COOGLEIOT_NTP_SERVER_3 #define COOGLEIOT_NTP_SERVER_3 "time.google.com" +#endif + +#ifndef COOGLEIOT_FIRMWARE_UPDATE_CHECK_MS #define COOGLEIOT_FIRMWARE_UPDATE_CHECK_MS 54000000 // 15 Minutes in Milliseconds +#endif +#ifndef COOGLEIOT_DNS_PORT #define COOGLEIOT_DNS_PORT 53 +#endif +#ifndef COOGLEIOT_EEPROM_EEPROM_SIZE #define COOGLE_EEPROM_EEPROM_SIZE 1024 +#endif +#ifndef COOGLEIOT_WEBSERVER_PORT #define COOGLEIOT_WEBSERVER_PORT 80 +#endif #ifdef COOGLEIOT_DEBUG #define COOGLEEEPROM_DEBUG