-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
请教:windows下编译经典蓝牙不生效 #37
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
您好,我使用在线安装的qt5.15.2,编译了此工程,发现“蓝牙客户端”、“蓝牙服务器”是置灰的,跟踪代码,发现是auto BTAdapterList = QBluetoothLocalDevice::allDevices(); 这里返回的个数为0,导致经典蓝牙不可用, 但我下载你编译好的,经典蓝牙功能却是正常的。
然后我尝试把下面几句先注释掉,发现经典蓝牙的连接和数据收发也都是正常,只是搜索不到设备(需要提前在电脑系统里面先配对好需要连接的设备)
if(num == 0)
{
invalid += Connection::BT_Client;
invalid += Connection::BT_Server;
invalid += Connection::BLE_Central;
invalid += Connection::BLE_Peripheral;
}
请问这可能是什么问题呢?你有遇到过吗?是我漏安装了什么吗
The text was updated successfully, but these errors were encountered: