BeeeOn Gateway
v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
|
The class represents the Bluetooth Low Energy device and stores necessary data about device such as instance of device, handle of signal and timestamp of last rssi update. Also the class allows to store necessary data (signal handle, pointer to callback) when the device is watched. More...
#include <DBusHciInterface.h>
Public Member Functions | |
Device (const GlibPtr< OrgBluezDevice1 > device, const uint64_t rssiHandle) | |
GlibPtr< OrgBluezDevice1 > | device () const |
uint64_t | rssiHandle () const |
void | updateLastSeen () |
Poco::Timestamp | lastSeen () const |
uint64_t | watchHandle () const |
void | watch (uint64_t watchHandle, Poco::SharedPtr< WatchCallback > callBack) |
void | unwatch () |
bool | isWatched () const |
std::string | name () |
MACAddress | macAddress () |
int16_t | rssi () |
The class represents the Bluetooth Low Energy device and stores necessary data about device such as instance of device, handle of signal and timestamp of last rssi update. Also the class allows to store necessary data (signal handle, pointer to callback) when the device is watched.
DBusHciInterface::Device::Device | ( | const GlibPtr< OrgBluezDevice1 > | device, |
const uint64_t | rssiHandle | ||
) |
rssiHandle | handle of signal on which is connected onDeviceRSSIChanged callback. |