This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Android BLE Library ConnectionPriorityRequest class

I am testing the ble_app_blinky example on nRF52840 BLE SoC and the "nRF Blinky" Android application example which uses the Android-BLE library from NordicSemiconductor.

My question is, how should i use the "ConnectionPriorityRequest.java" class from this Android library in order to change the "Connection Interval"

Where should it instantiated? ¿How should it be instantiated?

Thanks in advance.

Carlos

  • Hi Carlos, 

    As you can see you can have  3 levels of priority when using with requestConnectionPriority() from mBlinkyManager.

    At CONNECTION_PRIORITY_HIGH you can have the connection interval around 10-20ms depends on Android version and phone vendors. 

    However, to be able to request a specific connection interval it also possible to request the new connection parameter from the nRF52 side. It's handled by ble_conn_params library (initialized by conn_params_init() in main.c). You can call ble_conn_params_change_conn_params() to change the params.

Related