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
>    QByteArrayLiteral("\x01\x00")
> macro invocation (don't look at the macro definition - you might weep).
> Here,
> the object is compile-time generated. Nevertheless, its use is not "free"
> as
> claimed in the docs. There's still useless code generated owing to
> reference
> counting. Well, perhaps the compiler could decide that deallocating the
> static
> storage is undefined behavior and simply not generate the deallocation
> branch.
> 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
> which
> QByteArray automatically converts.
>
> Berthold
>
>
> _______________________________________________
> subsurface mailing list
> subsurface@subsurface-divelog.org
> http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
>
_______________________________________________
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to