Very timid beginning framework for BLE communication
Martin Gysel
me at bearsh.org
Sun Apr 23 23:10:30 PDT 2017
Am 24.04.2017 um 01:47 schrieb Linus Torvalds:
> On Sun, Apr 23, 2017 at 1:49 PM, Anton Lundin <glance at acc.umu.se> wrote:
>>
>> As far as I've understood things, even the scan for devices are
>> completely different, so is the reason that Qt merges the two scan
>> results?
>
> So as far as Qt seems to be concerned, "scan for devices" is all
> exactly the same. Only after the scan does the whole LE vs RFCOMM come
> into play.
>
> So I'd rather share the scanning code, because I think that all can be common.
exactly, AFAIK starting with Qt 5.8 it's possible to only scan for e.g.
ble devices which speeds up scanning.
>
>> That said, I would have liked to see that device pop up as two in the
>> device list, so you can choose if you would like to talk rfcomm to it or
>> btle.
>
> I have no idea whether that is how it can actually work.
>
> I *think* it shows up as one device as far as the Qt layer is
> concerned, and then you can look at the device->coreConfigurations()
> to see what different configurations it supports.
I don't thinks so, as classic and low energy devices are completely
different... the almost only things they have in common is the name
bluetooth ;)
/martin
More information about the subsurface
mailing list