BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
WirelessShutterContact.h
1 #pragma once
2 
3 #include <list>
4 
5 #include <Poco/SharedPtr.h>
6 
7 #include "conrad/ConradDevice.h"
8 #include "model/SensorData.h"
9 
10 namespace BeeeOn {
11 
17 public:
18  typedef Poco::SharedPtr<WirelessShutterContact> Ptr;
19 
20  static const std::string PRODUCT_NAME;
21 
22  WirelessShutterContact(const DeviceID& id, const RefreshTime &refresh);
24 
29  SensorData parseMessage(const Poco::JSON::Object::Ptr message) override;
30 };
31 
32 }
The class represents a standalone device Conrad Wireless shutter contact. It allows to communicate wi...
Definition: WirelessShutterContact.h:16
RefreshTime represents time of refreshing values from sensors. E.g. sensors are polled periodically o...
Definition: RefreshTime.h:24
Definition: SensorData.h:20
Abstract class representing generic Conrad device.
Definition: ConradDevice.h:21
SensorData parseMessage(const Poco::JSON::Object::Ptr message) override
Parses the message from Conrad interface and creates from it SensorData.
Definition: WirelessShutterContact.cpp:46
Definition: DeviceID.h:17