On 11 June 2018 at 21:50, Linus Torvalds <[email protected]> wrote: > On Mon, Jun 11, 2018 at 11:31 AM Lubomir I. Ivanov <[email protected]> > wrote: >> >> the Qt BLE Windows stack on the other hand detects it as "Write >> without response". >> this has to be investigated - possible bug. > > That's how you enable notifications - you write a 16-bit value to the > notification thing that has the notification bit enabled (and you > don't ask for responses). > > 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") > > which is just another way to say "two bytes: 0x01 and 0x00", which is > just the little-endian layout of 0x0001. > > So it's that > > qDebug() << "now writing \"0x0100\" to the descriptor" << > d.uuid().toString(); > ble->preferredService()->writeDescriptor(d, QByteArray::fromHex("0100")); > > that should enable notifications on the notification characteristic. >
thanks, i will check if it succeeds with this stack. lubomir -- _______________________________________________ subsurface mailing list [email protected] http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
