BeeeOn Gateway
v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
|
Abstract class representing generic Sonoff device. More...
#include <SonoffDevice.h>
Public Types | |
typedef Poco::SharedPtr < SonoffDevice > | Ptr |
Public Member Functions | |
SonoffDevice (const DeviceID &id, const RefreshTime &refresh, const std::string &productName, const std::list< ModuleType > &moduleTypes) | |
DeviceID | id () const |
RefreshTime | refreshTime () const |
std::list< ModuleType > | moduleTypes () const |
std::string | vendor () const |
std::string | productName () const |
Poco::Timestamp | lastSeen () const |
virtual SensorData | parseMessage (const MqttMessage &message)=0 |
Transforms received MQTT message to SensorData. | |
Static Public Attributes | |
static const std::string | VENDOR_NAME = "Sonoff" |
Protected Attributes | |
const DeviceID | m_deviceId |
RefreshTime | m_refresh |
std::string | m_productName |
std::list< ModuleType > | m_moduleTypes |
Poco::Timestamp | m_lastSeen |
Additional Inherited Members | |
Protected Member Functions inherited from BeeeOn::Loggable | |
void | setupLogger (Poco::Logger *logger=0) const |
Poco::Logger & | logger () const |
Loggable (const ClassInfo &info) | |
Loggable (const std::type_info &info) | |
Static Protected Member Functions inherited from BeeeOn::Loggable | |
static Poco::Logger & | forMethod (const char *name) |
static Poco::Logger & | forClass (const ClassInfo &info) |
static Poco::Logger & | forClass (const std::type_info &info) |
template<typename T > | |
static Poco::Logger & | forInstance (const T *i) |
static void | configureSimple (Poco::Logger &logger, const std::string &level) |
static void | logException (Poco::Logger &logger, const Poco::Message::Priority priority, const Poco::Exception &e, const char *file, size_t line) |
Abstract class representing generic Sonoff device.