I have a Bluegiga BT usb dongle that can work both as BT and BTLE.
Unfortunately I can't find the way to switch between the two modes and the
instructions I found in the SDK are a bit cryptic.
Can somebody help me, so I can test this feature with G2 too?
Il giorno lun 11 giu 2018 alle ore 22:21 Berthold Stoeger <
bstoe...@mail.tuwien.ac.at> ha scritto:
> On Montag, 11. Juni 2018 20:50:56 CEST Linus Torvalds wrote:
> > BLE is kind of odd. We also do things kind of oddly, because the way
> > we generate that 16-bit value is with
> > QByteArray::fromHex("0100")
> I think the idiomatic way to do this is the
> macro invocation (don't look at the macro definition - you might weep).
> the object is compile-time generated. Nevertheless, its use is not "free"
> claimed in the docs. There's still useless code generated owing to
> counting. Well, perhaps the compiler could decide that deallocating the
> storage is undefined behavior and simply not generate the deallocation
> But "gcc -O2" does.
> TL;DR: writeCharacteristic() taking a "const QByteArray &" parameter is an
> API-bug. It should take an "array_view" (i.e. const pointer + length) to
> QByteArray automatically converts.
> subsurface mailing list
subsurface mailing list