PDA

View Full Version : Cannot find my local Bluetooth module



Blitzor DDD
17th August 2016, 11:45
Hello!

There is Bluetooth module on my laptop, but my program cannot detect it.

This is my code:


QBluetoothLocalDevice device;
bool vaalid;
vaalid=device.isValid();
device.name();
if(vaalid==true) ui->label->setText("It is module!");
else{ui->label->setText("no module!");}

ui->lineEdit->setText(addres->toString());
ui->lineEdit_2->setText(device.name());

The result is: no module! address 00:00:00:00:00:00, although Bluetooth is and works perfectly
What is wrong with my code?
Operat. System: Windows 7 and Windows 8

Thank you!

anda_skoa
17th August 2016, 20:21
Have you built the experimental support module for Windows?

I.e. the supported platform in the released versions are Linux, OSX, Android and iOS.

Cheers,
_

Blitzor DDD
18th August 2016, 08:07
Thank you! I tried on Windows 8.1, now I will try on Ubuntu.
Sorry, what do you mean by "experimental support module for Windows" ?
Is it some tool or what?

anda_skoa
18th August 2016, 10:19
There is a work branch for Windows support in the qtconnectivity git repository
https://bugreports.qt.io/browse/QTBUG-40698

If you haven't checked that out, built and installed, then there is no support on Windows.

Cheers,
_

Blitzor DDD
18th August 2016, 13:08
Thank you very much!