Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
btchat does not find any Bluetooth devices
AnneRanch last edited by AnneRanch
A question to the forum users
Did anybody successfully implemented this Bluetooth example ?
I am not getting any SIGNALS indicating a device was found , only the usual timeout .
I did try different QT versions with same result and not having any issues with btscanner.
It appears the "chat" needs to have matching "service" .
I got the "connect" and "scanning " intermittently to find a "remote " device using different local adapter. It sure takes long time to "find" the device.
I finally got it working - I get connection to "custom service " after about 20 seconds. I have two local Bluetooth adapters and have to select the second one - not the "default" to get consistent, repeatable connection.
Apparently the adapter "service" has to match remote service.
With only one adapter I don't even get the correct form.
It looks as QBluetoothServiceDiscoveryAgent timeout is random.
And when it gets to the ridiculous time over 2 minutes - reboot!