diff --git a/devices/button/button.ino b/devices/button/button.ino index 53d21f4..33b7d16 100644 --- a/devices/button/button.ino +++ b/devices/button/button.ino @@ -1,7 +1,7 @@ #include const char* DEVICE_TYPE = "button"; -const char* FW_VERSION = "1.3 dev"; +const char* FW_VERSION = "1.3.0"; // число каналов устройства (1..8) extern const uint8_t CHANNEL_NUM = 2; diff --git a/devices/relay/relay.ino b/devices/relay/relay.ino index bd75bea..16fe54b 100644 --- a/devices/relay/relay.ino +++ b/devices/relay/relay.ino @@ -1,7 +1,7 @@ #include const char* DEVICE_TYPE = "relay"; -const char* FW_VERSION = "1.22 dev"; +const char* FW_VERSION = "1.22.0"; const uint8_t CHANNEL_NUM = 8; #include diff --git a/devices/sh_core_esp8266/src/REST_API.cpp b/devices/sh_core_esp8266/src/REST_API.cpp index 9d9a5a2..5dfb353 100644 --- a/devices/sh_core_esp8266/src/REST_API.cpp +++ b/devices/sh_core_esp8266/src/REST_API.cpp @@ -226,6 +226,11 @@ String json = "{"; json += "\"device_name\":\"" + deviceName + "\","; json += "\"device_type\":\"" + String(DEVICE_TYPE) + "\","; +#ifdef ARDUINO_ARCH_ESP8266 + json += "\"platform\":\"esp8266\","; +#elif defined(ARDUINO_ARCH_ESP32) + json += "\"platform\":\"esp32\","; +#endif json += "\"firmware_version\":\"" + String(FW_VERSION) + "\","; json += "\"core_version\":\"" + String(CORE_VERSION) + "\","; json += "\"device_id\":\"" + getUniqueID() + "\",";