Part Number: LAUNCHXL-CC2650
Tool/software: Code Composer Studio
I want to make central to change the connection interval of sensorTags using GAPCentralRole_UpdateLink, so, when I click the right button of the central device, it should change a connection interval, but nothing happens. Could someone help me just writing the code that works in this way, or is it imposible?
This is my code:
if (keys & KEY_RIGHT) {
if(BLE_STATE_CONNECTED){
/*
* connHandle
* connIntervalMin
* connIntervalMax
* connLatency
* connTimeout
* Bikoiztu egin dira konexioko parametroak, 800 eta 1600 hurrenez hurren.*/
GAPCentralRole_UpdateLink(connHandle,
DEFAULT_UPDATE_MIN_CONN_INTERVAL_PRIMA,
DEFAULT_UPDATE_MAX_CONN_INTERVAL_PRIMA,
DEFAULT_UPDATE_SLAVE_LATENCY,
DEFAULT_UPDATE_CONN_TIMEOUT_PRIMA);
}