Bluetooth LE device monitor



  • 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..



  • 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);
    


  • Lifetime Qt Champion

    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 ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.