Код: Выделить всё
void BleSensor::enableScanning(bool enable)
{
const std::string METHOD_START_DISCOVERY { "StartDiscovery" };
const std::string METHOD_STOP_DISCOVERY { "StopDiscovery" };
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79220917/how-to-call-ble-startdiscovery-with-sdbus-c-on-dbus-consistently[/url]
Мобильная версия