diff --git a/src/MyESP.cpp b/src/MyESP.cpp index 4cb83edde..6018b4515 100644 --- a/src/MyESP.cpp +++ b/src/MyESP.cpp @@ -4,6 +4,7 @@ * Paul Derbyshire - first revision: December 2018 * * with ideas borrowed from Espurna https://github.com/xoseperez/espurna + * and web from https://github.com/esprfid/esp-rfid */ #include "MyESP.h" diff --git a/src/ems-esp.cpp b/src/ems-esp.cpp index 8a022583e..424144a6b 100644 --- a/src/ems-esp.cpp +++ b/src/ems-esp.cpp @@ -13,7 +13,7 @@ #include "emsuart.h" #include "my_config.h" #include "version.h" -#include +#include "MyESP.h" // Dallas external temp sensors #include "ds18.h" @@ -26,6 +26,13 @@ DS18 ds18; // standard arduino libs #include // https://github.com/esp8266/Arduino/tree/master/libraries/Ticker +// default APP params +#define APP_NAME "EMS-ESP" +#define APP_HOSTNAME "ems-esp" +#define APP_URL "https://github.com/proddy/EMS-ESP" +#define APP_UPDATEURL "https://api.github.com/repos/proddy/EMS-ESP/releases/latest" + +// macros for easy debugging #define myDebug(...) myESP.myDebug(__VA_ARGS__) #define myDebug_P(...) myESP.myDebug_P(__VA_ARGS__) @@ -1717,9 +1724,8 @@ void WebCallback(JsonObject root) { item["productid"] = (it)->product_id; char s[10]; - itoa((it)->device_id,s, 16); - item["deviceid"] = s; // convert to hex - + itoa((it)->device_id, s, 16); + item["deviceid"] = s; // convert to hex } JsonObject thermostat = root.createNestedObject("thermostat"); diff --git a/src/version.h b/src/version.h index e7e79e14e..1d53396e8 100644 --- a/src/version.h +++ b/src/version.h @@ -1,6 +1 @@ - -#define APP_NAME "EMS-ESP" -#define APP_VERSION "1.9.0b5" -#define APP_HOSTNAME "ems-esp" -#define APP_URL "https://github.com/proddy/EMS-ESP" -#define APP_UPDATEURL "https://api.github.com/repos/proddy/EMS-ESP/releases/latest" +#define APP_VERSION "1.9.0b6"