M module-apps/application-settings-new/ApplicationSettings.cpp => module-apps/application-settings-new/ApplicationSettings.cpp +2 -0
@@ 181,6 181,8 @@ namespace app
connect(typeid(BluetoothPairResultMessage), [&](sys::Message *msg) {
auto bluetoothPairResultMsg = static_cast<BluetoothPairResultMessage *>(msg);
if (bluetoothPairResultMsg->status) {
+ bus.sendUnicast(std::make_shared<::message::bluetooth::RequestBondedDevices>(),
+ service::name::bluetooth);
return sys::MessageNone{};
}
const std::string toReplace = "%NAME";
M module-bluetooth/Bluetooth/BluetoothWorker.cpp => module-bluetooth/Bluetooth/BluetoothWorker.cpp +0 -1
@@ 258,5 258,4 @@ void BluetoothWorker::initDevicesList()
auto bondedDevicesStr =
std::visit(bluetooth::StringVisitor(), settings->getValue(bluetooth::Settings::BondedDevices));
pairedDevices = SettingsSerializer::fromString(bondedDevicesStr);
- LOG_INFO("Imported %d devices", pairedDevices.size());
}
M module-services/service-bluetooth/ServiceBluetooth.cpp => module-services/service-bluetooth/ServiceBluetooth.cpp +1 -0
@@ 57,6 57,7 @@ sys::ReturnCodes ServiceBluetooth::InitHandler()
worker->run();
connect(message::bluetooth::RequestBondedDevices(), [&](sys::Message *msg) {
+ LOG_INFO("Requested bonded devices!");
auto bondedDevicesStr =
std::visit(bluetooth::StringVisitor(), this->settingsHolder->getValue(bluetooth::Settings::BondedDevices));