Android BLE Connection time interval

后端 未结 5 926
孤街浪徒
孤街浪徒 2020-12-01 04:23

I am developing a BLE application on Nexus 4 using Android BLE API. I have a few questions/doubts:

1) Is there a way to set/override the connection or notification i

5条回答
  •  清歌不尽
    2020-12-01 04:57

    As for changing connection interval:

    Since Android Lollipop API level 21 you can use: requestConnectionPriority() With 3 levels: CONNECTION_PRIORITY_BALANCED, CONNECTION_PRIORITY_HIGH or CONNECTION_PRIORITY_LOW_POWER.

    It is still not so versatile as we developers would want, but at least something...

提交回复
热议问题