summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-05-28 19:10:53 +0200
committerSven Gothel <[email protected]>2020-05-28 19:10:53 +0200
commit51a5d78c15a17f2b6fcab7de2366048471c381ab (patch)
treeaa431004da520f787e0ea432fb18160688a5d5f7 /api
parent93c70956beddc007ba615b850401eb16cc9683dd (diff)
DBTDevice.hpp: More API doc
Diffstat (limited to 'api')
-rw-r--r--api/direct_bt/DBTDevice.hpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/api/direct_bt/DBTDevice.hpp b/api/direct_bt/DBTDevice.hpp
index ee9f2569..4c86e583 100644
--- a/api/direct_bt/DBTDevice.hpp
+++ b/api/direct_bt/DBTDevice.hpp
@@ -33,7 +33,6 @@
#include <vector>
#include <mutex>
-#include <atomic>
#include "DBTTypes.hpp"
@@ -119,11 +118,21 @@ namespace direct_bt {
bool isLEAddressType() const { return BDADDR_LE_PUBLIC == addressType || BDADDR_LE_RANDOM == addressType; }
bool isBREDRAddressType() const { return BDADDR_BREDR == addressType; }
+ /** Return RSSI of device as recognized at discovery and connect. */
int8_t getRSSI() const { return rssi; }
+
+ /** Return Tx Power of device as recognized at discovery and connect. */
int8_t getTxPower() const { return tx_power; }
+
+ /** Return AppearanceCat of device as recognized at discovery, connect and GATT discovery. */
AppearanceCat getAppearance() const { return appearance; }
+
std::string const getName() const;
+
+ /** Return shared ManufactureSpecificData as recognized at discovery, pre GATT discovery. */
std::shared_ptr<ManufactureSpecificData> const getManufactureSpecificData() const;
+
+ /** Return a list of services as recognized at discovery, pre GATT discovery. */
std::vector<std::shared_ptr<uuid_t>> getServices() const;
/** Returns index >= 0 if found, otherwise -1 */