minor changes

This commit is contained in:
Paul
2019-08-29 23:18:40 +02:00
parent 80ee758eef
commit d71dbbbd21
3 changed files with 12 additions and 10 deletions

View File

@@ -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"

View File

@@ -13,7 +13,7 @@
#include "emsuart.h"
#include "my_config.h"
#include "version.h"
#include <MyESP.h>
#include "MyESP.h"
// Dallas external temp sensors
#include "ds18.h"
@@ -26,6 +26,13 @@ DS18 ds18;
// standard arduino libs
#include <Ticker.h> // 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");

View File

@@ -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"