Hello, My name is Shravan Singh and I work for Blue Sparq company based in Florida. We rely on QT a lot for creating applications that connect and communicate with the embedded devices. We are currently working on a project that uses EH-MC10 Bluetooth module and it communicates with the QT app.
Since I am a beginner I wanted to understand how this communication works. So I took bluetooth chat example to test it out. Now the demo recognizes my device but it doesn't connects to it. I dont know what is causing this problem. I added this in the demo thinking that It would solve my problem but it does not Added this function in remoteselector.c void RemoteSelector::startDiscovery() { ui->status->setText(tr("Scanning...")); if (m_discoveryAgent->isActive()) m_discoveryAgent->stop(); ui->remoteDevices->clear(); //m_discoveryAgent->setUuidFilter(uuid); m_discoveryAgent->start(QBluetoothServiceDiscoveryAgent::FullDiscovery); } Added this function in remoteselector.h void startDiscovery(); I have even changed the UUID to match my device UUID static const QLatin1String serviceUuid( "11223344-5566-7788-99aa-bbccddeeff00"); I see my device getting recognized D/BluetoothLeScanner( 6935): onScanResult() - ScanResult{mDevice=00:EA:18:00:A6:0C, mScanRecord=ScanRecord [mAdvertiseFlags=6, mServiceUuids=[11223344-5566-7788-99aa-bbccddeeff00], mManufacturerSpecificData={}, mServiceData={}, mTxPowerLevel=8, mDeviceName=EH-MC10], mRssi=-55, mTimestampNanos=251762722824} But nothing after that What can be the problem here Thanks, Shravan
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest