[Interest] Serial port / Bluetooth port to Android

Alex Blasche alexander.blasche at qt.io
Tue Aug 29 15:59:13 CEST 2017

> -----Original Message-----
> From: Interest [mailto:interest-bounces+alexander.blasche=qt.io at qt-
> project.org] On Behalf Of Murphy, Sean
> Sent: Friday, 25 August 2017 22:25

>I can
> accomplish both of those connections using a class that inherits from
> QSerialPort to accomplish the communication. This works fine on Windows
> since both paths show up as COM ports, which QSerialPort plays nicely with:

> On the Android device, we really only care about connected to the external
> device via Bluetooth. But does this same behavior, where Bluetooth looks like a
> serial device, exist under Android and I can still use QSerialPort? Or do I need
> some other device (i.e. QBluetoothSocket)?

You have to use QBluetoothSocket. There is no other choice. At the end of the day both interfaces are derived from QIODevice. "Merely" the path to your QIoDevice is different.


More information about the Interest mailing list