5 #include <Poco/SharedPtr.h>
6 #include <Poco/Timestamp.h>
8 #include "model/ModuleType.h"
9 #include "model/SensorData.h"
10 #include "net/MqttMessage.h"
11 #include "sonoff/SonoffDevice.h"
12 #include "util/Loggable.h"
24 typedef Poco::SharedPtr<SonoffSC> Ptr;
26 static const std::string PRODUCT_NAME;
RefreshTime represents time of refreshing values from sensors. E.g. sensors are polled periodically o...
Definition: RefreshTime.h:24
Definition: SensorData.h:20
SensorData parseMessage(const MqttMessage &message) override
Parses the MQTT message from the Sonoff SC and creates from it SensorData.
Definition: SonoffSC.cpp:47
Abstract class representing generic Sonoff device.
Definition: SonoffDevice.h:21
Definition: MqttMessage.h:7
The class represents Sonoff SC device. The class allows to process the messages from the Sonoff SC wi...
Definition: SonoffSC.h:22
Definition: DeviceID.h:17