implemented rssi and txpower reporting for bluetooth device

This commit is contained in:
Lasan Mahaliyana
2026-03-11 22:51:52 +05:30
parent b64b1bb186
commit 0e7ac98e43
2 changed files with 27 additions and 0 deletions
@@ -17,6 +17,7 @@
#include <atomic>
#include <memory>
#include <optional>
#include <sdbus-c++/Error.h>
#include <sdbus-c++/IConnection.h>
@@ -53,6 +54,8 @@ class BluetoothDevice : public api::BluetoothDevice {
std::string GetName() const override;
MacAddress GetMacAddress() const override;
std::string GetAddressType() const;
std::optional<int16_t> GetRssi() const;
std::optional<int16_t> GetTxPower() const;
MacAddress GetAddress() const { return last_known_address_; }