From bfbe9cbf85ef22052454ebe3a9a54ed9b4eacefc Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Mon, 15 Jun 2015 23:52:47 +0200 Subject: [PATCH] use l2cap request to update conn params instead of updating ourselves --- example/embedded/le_streamer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/example/embedded/le_streamer.c b/example/embedded/le_streamer.c index 8064cbea2..b5b9dc6a9 100644 --- a/example/embedded/le_streamer.c +++ b/example/embedded/le_streamer.c @@ -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;