le_data_channel_server: request 15 ms connection interval

This commit is contained in:
Matthias Ringwald 2018-01-16 15:21:24 +01:00
parent 5b6326f143
commit fc243dc843

View File

@ -234,9 +234,10 @@ static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *pack
conn_interval = hci_subevent_le_connection_complete_get_conn_interval(packet);
printf("%c: Connection Interval: %u.%02u ms\n", le_data_channel_connection.name, conn_interval * 125 / 100, 25 * (conn_interval & 3));
printf("%c: Connection Latency: %u\n", le_data_channel_connection.name, hci_subevent_le_connection_complete_get_conn_latency(packet));
// min con interval 20 ms
// gap_request_connection_parameter_update(connection_handle, 0x10, 0x18, 0, 0x0048);
// printf("Connected, requesting conn param update for handle 0x%04x\n", connection_handle);
// min con interval 15 ms - supported from iOS 11
gap_request_connection_parameter_update(le_data_channel_connection.connection_handle, 12, 12, 0, 0x0048);
printf("Connected, requesting conn param update for handle 0x%04x\n", le_data_channel_connection.connection_handle);
//
test_reset(&le_data_channel_connection);
break;