Bluetooth blues

Claudiu Olteanu olteanu.vasilica.claudiu at gmail.com
Fri Oct 23 05:12:07 PDT 2015


Unfortunately the API doesn't allow you to specify a PIN code.

There is a bug [1] reported and also a partial implementation for an
agent[2] which could be used to pass the PIN code,

[1] - https://bugreports.qt.io/browse/QTBUG-42740
[2] - https://codereview.qt-project.org/#/c/85595/

On Fri, Oct 23, 2015 at 2:50 PM, Anton Lundin <glance at acc.umu.se> wrote:
> I took a look at qt parring interfaces, shouldn't there be a way to test a couple of standard parring codes?
>
> //Anton
>
> On October 23, 2015 12:02:19 PM GMT+02:00, Claudiu Olteanu <olteanu.vasilica.claudiu at gmail.com> wrote:
>>Hi there,
>>
>>If your remote device requests a custom PIN code for the pairing
>>process, your should pair the devices using a different tool.
>>Currently QtBluetooth doesn't have support for custom PIN codes.
>>
>>A workaround could be to use bluetoothctl, register an agent using the
>>following commands, initiate the pairing process using our application
>>and enter the pin code when it is requested:
>>
>>[bluetooth]# agent KeyboardOnly
>>[bluetooth]# default-agent
>>
>>Claudiu
>>_______________________________________________
>>subsurface mailing list
>>subsurface at subsurface-divelog.org
>>http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
>


More information about the subsurface mailing list