mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-01 04:20:33 +00:00
le_data_channel_server: request 15 ms connection interval
This commit is contained in:
parent
5b6326f143
commit
fc243dc843
@ -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);
|
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 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));
|
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);
|
// min con interval 15 ms - supported from iOS 11
|
||||||
// printf("Connected, requesting conn param update for handle 0x%04x\n", connection_handle);
|
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);
|
test_reset(&le_data_channel_connection);
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user