Re: [bt_le]Does Zephyr have APIs to get ConnInterval, DataLengthExtension and PHY?
Thanks for the prompt reply, this is useful for me.
I think it's good idea to become a contributor of Zephyr project.
On 2019/4/5, 11:09 PM, "Hedberg, Johan" <johan.hedberg@...> wrote:
On 5 Apr 2019, at 17.01, Kai Ren <kren@...> wrote:
> I’m trying to find the APIs on Zephyr, https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.zephyrproject.org%2Flatest%2Freference%2Fbluetooth%2Findex.html&data=02%7C01%7C%7C9bc06492be1f40b3938408d6b9d8a2a8%7Ce4e0fec5fc6c4dd6ae374bdb30e156b9%7C0%7C0%7C636900737429115435&sdata=RZI2kony2KrDUqCSkdmaly4ePPUgMCa8c6ivMJ9Zc5k%3D&reserved=0 , using these APIs can get
> • ConnInterval,
> • whether Data Length Extension is enable or not, and
> • which PHY is using, 1M uncoded, 2M uncoded or 1M coded?
> But I haven’t found them, so send this email for help.
The API to get information on a connection is bt_conn_get_info(). Out of the parameters you mentioned you can get at least get the interval, however DLE or PHY information is not currently exposed (contributions are welcome!).