Hi,every one!
As far as i konw, the original connection interval that ios sets is about 50ms, that is a little too fast for me, so i want to change the connection interval after connection.
and my code is(i do it after connection):
memset(&gap_conn_params2, 0, sizeof(mynewparams));
mynewparams.min_conn_interval = MIN_CONN_INTERVAL;
mynewparams.max_conn_interval = MAX_CONN_INTERVAL;
mynewparams.slave_latency = SLAVE_LATENCY;
mynewparams.conn_sup_timeout = CONN_SUP_TIMEOUT;
ble_conn_params_change_conn_params(&mynewparams);
and then i found out the following problems: 1.if MIN_CONN_INTERVAL > 50ms, the connection will disconnect automatically 2.if MIN_CONN_INTERVAL < 50ms, seems the connection interval does not change becaues the current comsumption does not change
so how to explain this?
to make it right, are there something also should be done on smart phone or just modify the device is enough?
thank you for your wachting!