add device version & product getter functions

This commit is contained in:
proddy
2020-07-06 20:44:59 +02:00
parent 4d1ae1809c
commit b49871320b
3 changed files with 19 additions and 3 deletions

View File

@@ -35,6 +35,7 @@
#include <ESP8266React.h>
#include "EMSESPStatusService.h"
#include "EMSESPDevicesService.h"
#include "EMSESPSettingsService.h"
#include "emsdevice.h"
@@ -133,6 +134,8 @@ class EMSESP {
static bool add_device(const uint8_t device_id, const uint8_t product_id, std::string & version, const uint8_t brand);
static std::vector<std::unique_ptr<EMSdevice>> emsdevices;
static Mqtt mqtt_;
static System system_;
static Sensors sensors_;
@@ -144,6 +147,7 @@ class EMSESP {
static ESP8266React esp8266React;
static EMSESPSettingsService emsespSettingsService;
static EMSESPStatusService emsespStatusService;
static EMSESPDevicesService emsespDevicesService;
private:
EMSESP() = delete;
@@ -165,7 +169,6 @@ class EMSESP {
uint8_t flags;
};
static std::vector<std::unique_ptr<EMSdevice>> emsdevices;
static std::vector<Device_record> device_library_;
static uint8_t actual_master_thermostat_;