mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-14 01:27:41 +00:00
example: use slave latency of 4 to avoid disconnects in some Controller combinations
This commit is contained in:
parent
effecf77ff
commit
a6622c5743
@ -270,7 +270,7 @@ static void hci_packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *
|
||||
|
||||
// request min con interval 15 ms for iOS 11+
|
||||
printf("- LE Connection 0x%04x: request 15 ms connection interval\n", con_handle);
|
||||
gap_request_connection_parameter_update(con_handle, 12, 12, 0, 0x0048);
|
||||
gap_request_connection_parameter_update(con_handle, 12, 12, 4, 0x0048);
|
||||
break;
|
||||
case HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE:
|
||||
// print connection parameters (without using float operations)
|
||||
|
@ -198,7 +198,7 @@ static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *pack
|
||||
printf("%c: Connection Latency: %u\n", le_cbm_connection.name, hci_subevent_le_connection_complete_get_conn_latency(packet));
|
||||
|
||||
// min con interval 15 ms - supported from iOS 11
|
||||
gap_request_connection_parameter_update(le_cbm_connection.connection_handle, 12, 12, 0, 0x0048);
|
||||
gap_request_connection_parameter_update(le_cbm_connection.connection_handle, 12, 12, 4, 0x0048);
|
||||
printf("Connected, requesting conn param update for handle 0x%04x\n", le_cbm_connection.connection_handle);
|
||||
//
|
||||
test_reset(&le_cbm_connection);
|
||||
|
@ -190,7 +190,7 @@ static void hci_packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *
|
||||
|
||||
// request min con interval 15 ms for iOS 11+
|
||||
printf("LE Connection - Request 15 ms connection interval\n");
|
||||
gap_request_connection_parameter_update(con_handle, 12, 12, 0, 0x0048);
|
||||
gap_request_connection_parameter_update(con_handle, 12, 12, 4, 0x0048);
|
||||
break;
|
||||
case HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE:
|
||||
// print connection parameters (without using float operations)
|
||||
|
@ -232,7 +232,7 @@ static void hci_packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *
|
||||
|
||||
// request min con interval 15 ms for iOS 11+
|
||||
printf("LE Connection - Request 15 ms connection interval\n");
|
||||
gap_request_connection_parameter_update(con_handle, 12, 12, 0, 0x0048);
|
||||
gap_request_connection_parameter_update(con_handle, 12, 12, 4, 0x0048);
|
||||
break;
|
||||
|
||||
case HCI_SUBEVENT_LE_CONNECTION_UPDATE_COMPLETE:
|
||||
|
Loading…
x
Reference in New Issue
Block a user