Re: GATT Server ReadValue offset missing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Matthias,

On Thu, Nov 23, 2017 at 5:05 PM, Matthias Schmidt
<Matthias.Schmidt@xxxxxxxxxx> wrote:
> Hi *,
>
> despite the ReadValue Documentation:
>
> Methods         array{byte} ReadValue(dict options)
>
>                         Issues a request to read the value of the
>                         characteristic and returns the value if the
>                         operation was successful.
>
>                         Possible options: "offset": uint16 offset
>                                           "device": Object Device (Server only)
>
> We don’t get the offset value, but only the device entry:
>
> Keyhandling.ReadValue(), options={'device': '/org/bluez/hci0/dev_45_4A_B8_B8_BA_09'}
>
> We are running Bluez 5.47 on Debian Stretch on armv7l.
>
> What have we done wrong?

Is the offset 0? We only send the offset if it is different than 0:

https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/src/gatt-database.c#n1719

> Cheers,
>
> Matthias
>
> Matthias Schmidt
> Senior Architect
>
> diva-e Karlsruhe
> Ludwig-Erhard-Allee 20, 76131 Karlsruhe, Deutschland
> T: +49 721 92060 822
> M: +49 175 2694213
> matthias.schmidt@xxxxxxxxxx
>
> CE27 BF59 3651 2619 8A5D  08CA 0839 2E99 3449 4A32
>
>
>
> Public Key: matthias-schmidt-diva-e-com-34494A32.asc <https://owncloud.diva-e.com/index.php/s/RJYDK9Ypfnxqscg/download>
>
> www.diva-e.com <https://www.diva-e.com/> follow us: twitter <https://twitter.com/diva_enterprise>, facebook <https://www.facebook.com/digital.value.enterprise/?ref=hl>, LinkedIn <https://www.linkedin.com/company/diva-e-digital-value-enterprise-gmbh>, Xing <https://www.xing.com/companies/diva-edigitalvalueenterprisegmbh>
>
> -------------------------------------------------
> diva-e | Netpioneer GmbH
> Ludwig-Erhard-Allee 20, 76131 Karlsruhe
> HRB: 107521 Handelsregister Mannheim
> Geschäftsführung: Marcel Fuhlmann, Stefan Märkle, Axel Jahn
>
>



-- 
Luiz Augusto von Dentz
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux