|
| | BLESmartDevice (const MACAddress &address, const Poco::Timespan &timeout, const RefreshTime &refresh, const HciInterface::Ptr hci) |
| |
| DeviceID | id () const override |
| |
|
RefreshTime | refresh () const override |
| | Regular period telling how often to call the method PollableDevice::poll(). The refresh must contain a valid time.
|
| |
|
MACAddress | macAddress () const |
| |
|
virtual std::list< ModuleType > | moduleTypes () const =0 |
| |
|
virtual std::string | productName () const =0 |
| |
|
virtual std::string | vendor () const =0 |
| |
|
virtual void | pair (Poco::SharedPtr< HciInterface::WatchCallback > callback) |
| | When the device supports processing of advertising data, it should call a watch() on the given HciInterface in this method and a unwatch() in the destructor. When the method is re-called it do not have any effect.
|
| |
|
virtual bool | pollable () const |
| | Returns true if the device is pollable, otherwise false.
|
| |
|
void | poll (Distributor::Ptr distributor) override |
| | Perform polling for data and ship them via the given distributor.
|
| |
| virtual void | requestModifyState (const ModuleID &moduleID, const double value) |
| | Modifies the device module given by moduleID to a given value. More...
|
| |
| virtual SensorData | parseAdvertisingData (const std::vector< unsigned char > &data) const |
| | Transforms advertising data to SensorData. More...
|
| |
|
|
void | setupLogger (Poco::Logger *logger=0) const |
| |
|
Poco::Logger & | logger () const |
| |
|
| Loggable (const ClassInfo &info) |
| |
|
| Loggable (const std::type_info &info) |
| |
|
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 Bluetooth Low Energy smart device.