Bluetooth device discovery not working.
-
Hi! I'm trying to write an app that will communicate with a mobile robot that I built via bluetooth. I want the app to display a list of COM ports and let user to choose wich port to connect. However, QSerialPortInfo::availablePorts() yields over 10 results, which is messy. I would like to use QBluetoothDeviceDiscoveryAgent class to look only for a bt device named "robot". Unfortunately, when I run the example "btscanner" no devices appear. I also tried to specify the address:
@QBluetoothAddress address("XX:XX:XX:XX:XX:XX");
discoveryAgent = new QBluetoothDeviceDiscoveryAgent(address);@But it doesn't work either. Moreover, giving some random address doesn't produce error when I run
@qDebug()<< discoveryAgent->error();@I tried on two computers, one with internal, one with external bt adapter, both running Win7.
-
QBluetooth, unfortunately, is not supported yet on Windows.
-
bq. Awww, that explains everything :( Is there any other way to read device’s name on Windows?
Yes, need to use something from:
-
Windows Bluetooth API : http://msdn.microsoft.com/en-us/library/windows/desktop/aa362927(v=vs.85).aspx
-
Winsock Functions : http://msdn.microsoft.com/en-us/library/windows/desktop/ms741394(v=vs.85).aspx
bq. QBluetooth, unfortunately, is not supported yet on Windows.
But there are added a new "wip/win" branch to start support of Windows
But, unfortunately, a contributers (for example me) don't have the free time that to implement everything.
-
-
[quote author="kuzulis" date="1411652660"]
But there are added a new "wip/win" branch to start support of WindowsBut, unfortunately, a contributers (for example me) don't have the free time that to implement everything.[/quote]
Any links to the branch? Could not find it on codereview.
-