BLE connection parameters update
Posted: Wed May 10, 2017 12:37 pm
Hello,
i'm stuck in understanding how the connection parameters (min & max connection interval, latency and timeout) of a BLE connection are stored and how can they be manipulated in the GATT SERVER.
Based on my knowledge central and peripheral device negotiate the connection parameters. I coded a Gatt client that sends connection parameters at the connection request time but i don't find how they are manipulated in the Gatt server side.
I found a struct (esp_ble_conn_update_params_t) that stores these parameters and a function (esp_ble_gap_update_conn_params(esp_ble_conn_update_params_t *params) ) that can be used to modify their values but nothing of these is actually called in the gatt server side.
Summarizing:
1) How and where are the connection parameters stored? Is it public? Can be exposed?
1) when the gatt client requests a dynamic update of the connection parameters what kind of callback event is generated in the gatt_handler?
2) what are the min & max connection interval i can use? Are they set using the N * 0.625 msec method? (Documentation is missing)
Thank you,
frax
i'm stuck in understanding how the connection parameters (min & max connection interval, latency and timeout) of a BLE connection are stored and how can they be manipulated in the GATT SERVER.
Based on my knowledge central and peripheral device negotiate the connection parameters. I coded a Gatt client that sends connection parameters at the connection request time but i don't find how they are manipulated in the Gatt server side.
I found a struct (esp_ble_conn_update_params_t) that stores these parameters and a function (esp_ble_gap_update_conn_params(esp_ble_conn_update_params_t *params) ) that can be used to modify their values but nothing of these is actually called in the gatt server side.
Summarizing:
1) How and where are the connection parameters stored? Is it public? Can be exposed?
1) when the gatt client requests a dynamic update of the connection parameters what kind of callback event is generated in the gatt_handler?
2) what are the min & max connection interval i can use? Are they set using the N * 0.625 msec method? (Documentation is missing)
Thank you,
frax