mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-17 07:19:42 +00:00
use l2cap request to update conn params instead of updating ourselves
This commit is contained in:
parent
8b5f60bab3
commit
bfbe9cbf85
@ -180,8 +180,9 @@ static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *pack
|
||||
test_data_len = ATT_DEFAULT_MTU - 3;
|
||||
conn_handle = READ_BT_16(packet, 4);
|
||||
// min con interval 20 ms
|
||||
// res = gap_update_connection_parameters(conn_handle, 0x10, 0x10, 0, 0x0048);
|
||||
l2cap_le_request_connection_parameter_update(conn_handle, 0x10, 0x18, 0, 0x0048);
|
||||
printf("Connected, requesting conn param update for handle 0x%04x\n", conn_handle);
|
||||
gap_update_connection_parameters(conn_handle, 0x10, 0x10, 0, 0x0048);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user