[SailfishDevel] QBluetoothServer Client app
Bea Lam
bea.lam at jolla.com
Wed Nov 16 07:46:48 UTC 2016
Hi Riku,
> On 16 Nov 2016, at 3:17 pm, Riku Lahtinen <rikul.lajolla at kiu.as> wrote:
>
> Hi!
>
> I have tried to modify my Fast chess app to have a two player mode with two devices. I planned to code it using bluetooth technology. I found a good QT example Ping Pong, which has a functionality I need.
>
> Currently in my code I think I can get the server running in my Jolla C or Jolla 1. When I try to connect my client device, some discovery is done, but the connection is not established. Currently I can't find any bug in my code.
>
> Is Jolla and SailfishOS capable to create that kind of app? If the answer is YES I will hunt more possible bugs in code. If the answer is NO, I have to find another solution to pair devices.
Note that the devices have to be paired already via the Sailfish Settings app, as there are restrictions on creating new pairings outside of the system framework. If the devices are successfully paired and trusted, I assume that it would be possible to establish a RFCOMM connection, so I would suggest studying the hcidump logs to see where it breaks down.
Note that the QtBluetooth library is not yet included in the Harbour APIs, so it cannot be used in apps distributed via the Store.
Cheers,
Bea
More information about the Devel
mailing list