Bluetooth LE device monitor
-
wrote on 12 Nov 2015, 18:21 last edited by
Hi,
I am a newbie on both of Qt and BLE, trying to get data in Qt via BLE dongle ( Cypress PSoC 4 BLE dongle), however cannot even find my BLE dongle in Qt.
If possible, could anyone tell me where I can find an example like BLE device monitor? because the scan example in Qt doesn't work at all for me.
Or which command should I use to look for a BLE device?
Thank you!
-
In this forum there are no telepathists... They went to holidays.
Or which command should I use to look for a BLE device?
Google will help you..
-
wrote on 15 Nov 2015, 02:15 last edited by
I could not even find my BLE host device.
Could anyone help me?Here is my codes:
QString localDeviceName; QBluetoothAddress dongleAddress; QBluetoothHostInfo dongleHostInfo; // Check if Bluetooth is available on this device QList<QBluetoothHostInfo> dongleHostInfoList = QBluetoothLocalDevice::allDevices(); if (dongleHostInfoList.count() > 1){ QStringList dongleNameStringList; for (int n=0; n<dongleHostInfoList.count(); n++){ dongleNameStringList << dongleHostInfoList.at(n).name(); } QString dongleNameString = QInputDialog::getItem(0, QString("Sen Dongle Select"), QString("Please select your BLE Dongle."), dongleNameStringList, 0, false); dongleAddress = dongleHostInfoList.at(dongleNameStringList.indexOf(dongleNameString)).address(); } else if(dongleHostInfoList.count() == 1){ dongleAddress = dongleHostInfoList.at(0).address(); }else { qDebug() << QString ("No Device Detected"); } localDevice = new QBluetoothLocalDevice(dongleAddress);
-
Hi,
Like @kuzulis wrote, we're not telepathists nor psychic. You should at least give more details like OS and Qt version used. Also, since you're using the bluetooth module, did you check that you are using a supported OS ?
3/4