// --------------------------------------------------------- // QBtDeviceDiscovererPrivate::startSearch() // Called to start searching for new devices // --------------------------------------------------------- // void QBtDeviceDiscovererPrivate::DiscoverDevices() { if(isSearching) { emit p_ptr->error(QBtDeviceDiscoverer::BluetoothInUse); return; } deviceList.clear(); sp_ptr = p_ptr; // the first zero means that all device classes are searched // and the second that the discovery can find unlimited number // of devices if (BTSDK_OK == Btsdk_StartDeviceDiscovery(0, 100, 6)) { isSearching = true; emit p_ptr->discoveryStarted(); } else emit p_ptr->error(QBtDeviceDiscoverer::UnknownError); }
void Soleil::startDeviceDiscovery() { BST(Btsdk_StartDeviceDiscovery(0, 0, 0)); }