Added GattProfile. Disabled fast adverts due to linux not supporting random mac addresses.

This commit is contained in:
kidfromjupiter
2026-01-12 08:17:05 +00:00
parent 3d97a540b5
commit 329f2ce2c9
15 changed files with 219 additions and 27 deletions
@@ -116,7 +116,8 @@ void MonitoredBluetoothDevice::onPropertiesChanged(
}
for (auto it = changedProperties.begin(); it != changedProperties.end();
it++) {
it++)
{
if (it->first == bluez::DEVICE_PROP_ADDRESS) {
LOG(INFO) << __func__ << ": " << getObjectPath()
<< ": Notifying observers about address change";
@@ -124,6 +125,7 @@ void MonitoredBluetoothDevice::onPropertiesChanged(
for (const auto &observer : observers_.GetObservers()) {
observer->DeviceAddressChanged(*this, address);
}
} else if (it->first == bluez::DEVICE_PROP_PAIRED) {
LOG(INFO) << __func__ << ": " << getObjectPath()
<< "Notifying observers about paired status change.";
@@ -137,7 +139,9 @@ void MonitoredBluetoothDevice::onPropertiesChanged(
for (const auto &observer : observers_.GetObservers()) {
observer->DeviceConnectedStateChanged(*this, it->second);
}
} else if (it->first == bluez::DEVICE_NAME) {
} else if ( it -> first == "ServicesResolved"){
LOG(INFO) << ": ServicesResolved";
}else if (it->first == bluez::DEVICE_NAME) {
auto callback = GetDiscoveryCallback();
if (callback != nullptr && callback->device_name_changed_cb != nullptr)
callback->device_name_changed_cb(*this);