Unsolved Unable to pair Bluetooth (within app): incorrect PIN or passkey
-
I am using HC-05 to pair with android, when I try to pair the Bluetooth device within the app (developed in Qt5.12.4) then it comes up with an error "Incorrect PIN or Passkey". But if I pair Bluetooth device from device (android) settings then it is successful and the app can use it. I've found a relevant thread suggesting the solution but I cannot understand it. Looking forward to the considerate response.
-
Hi,
The thread you found proposes a solution for Ubuntu not Android.
One thing that comes to mind, do you have the Bluetooth permission requested by your application ?
-
@sgaist Yes, the following permissions are requested by the application.
android.permission.BlueTOOTH android.permission.BLUETOOTH_ADMIN
-
Have they been accepted ?
-
@sgaist these permissions are showing up and granted by the system. (I am using Meizu X8)
* Turn on Bluetooth: Allow * Access Location: Allow * Read List of Installed apps: Allow * Use phone storage: Allow