example: use slave latency of 4 to avoid disconnects in some Controller combinations

This commit is contained in:
Matthias Ringwald 2023-04-15 11:47:56 +02:00
parent effecf77ff
commit a6622c5743
4 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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);

View File

@ -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)

View File

@ -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: