BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
BeeWiSmartDoor.h
1 #pragma once
2 
3 #include <Poco/SharedPtr.h>
4 
5 #include "bluetooth/BeeWiDevice.h"
6 #include "bluetooth/HciConnection.h"
7 
8 namespace BeeeOn {
9 
15 class BeeWiSmartDoor : public BeeWiDevice {
16 public:
17  typedef Poco::SharedPtr<BeeWiSmartDoor> Ptr;
18 
19  static const std::string NAME;
20 
21 protected:
26  const MACAddress& address,
27  const Poco::Timespan& timeout,
28  const RefreshTime& refresh,
29  const HciInterface::Ptr hci);
30 
31 public:
33  const MACAddress& address,
34  const Poco::Timespan& timeout,
35  const RefreshTime& refresh,
36  const HciInterface::Ptr hci,
37  HciConnection::Ptr conn);
38  ~BeeWiSmartDoor();
39 
46  const std::vector<unsigned char>& data) const override;
47 
48  static bool match(const std::string& modelID);
49 };
50 
51 }
RefreshTime represents time of refreshing values from sensors. E.g. sensors are polled periodically o...
Definition: RefreshTime.h:24
Definition: SensorData.h:20
The class represents BeeWi door sensor. It allows to parse recieved data from the device...
Definition: BeeWiSmartDoor.h:15
Definition: MACAddress.h:8
Abstract class for BeeWi devices. Some BeeWi devices need to set the time to stop blinking...
Definition: BeeWiDevice.h:22
RefreshTime refresh() const override
Regular period telling how often to call the method PollableDevice::poll(). The refresh must contain ...
Definition: BLESmartDevice.cpp:31
SensorData parseAdvertisingData(const std::vector< unsigned char > &data) const override
Definition: BeeWiSmartDoor.cpp:44
BeeWiSmartDoor(const MACAddress &address, const Poco::Timespan &timeout, const RefreshTime &refresh, const HciInterface::Ptr hci)