[Interest] Serial port / Bluetooth port to Android
smurphy at walbro.com
Wed Aug 30 14:56:43 CEST 2017
> > Is this just a difference of Android vs. Windows that our external BT device
> > doesn't show up as a serial device under Android like it does under
> The Android way of working is the same for Bluez/Linux (although with
> rfcomm you can achieve the same), WinRT and the Apple platforms.
> Your suggestion sound like a reasonable approach. However please be aware
> that although most of the QIODevice instances in Qt have a common
> interface there are slight differences anyway. One might not support
> buffered reads, the next may have a different spin on what's a proper line
> read etc. It's not the end of the world but you want to make sure to test your
> code with all the various QIODevice types.
I think I'm mostly safe there. The data is binary data in our own message format,
so no line endings to deal with. And everything I'm doing on the reading side is
handled in a slot that is connected to the ready read signal.
I'll start the rewrite and see how it goes!
More information about the Interest