3 #include <Poco/SharedPtr.h>
5 #include "bluetooth/BeeWiDevice.h"
6 #include "bluetooth/HciConnection.h"
17 typedef Poco::SharedPtr<BeeWiSmartMotion> Ptr;
19 static const std::string NAME;
27 const Poco::Timespan& timeout,
29 const HciInterface::Ptr hci);
34 const Poco::Timespan& timeout,
36 const HciInterface::Ptr hci,
37 HciConnection::Ptr conn);
46 const std::vector<unsigned char>& data)
const override;
48 static bool match(
const std::string& modelID);
RefreshTime represents time of refreshing values from sensors. E.g. sensors are polled periodically o...
Definition: RefreshTime.h:24
Definition: SensorData.h:20
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
BeeWiSmartMotion(const MACAddress &address, const Poco::Timespan &timeout, const RefreshTime &refresh, const HciInterface::Ptr hci)
The class represents BeeWi motion sensor. It allows to parse recieved data from the device...
Definition: BeeWiSmartMotion.h:15
SensorData parseAdvertisingData(const std::vector< unsigned char > &data) const override
Definition: BeeWiSmartMotion.cpp:44