summaryrefslogtreecommitdiff
path: root/app/src/ble.c
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2020-07-19 22:40:49 -0400
committerPete Johanson <peter@peterjohanson.com>2020-07-19 22:40:49 -0400
commitfd407c4876ddb3af8f0490051cd81620c545ebad (patch)
treecda5224d2cfee958086cca0ed9e57e50914f17a4 /app/src/ble.c
parent2a6b9ec86e99a873b1ecebbb66955b5f93a899b1 (diff)
Update connectin params once we're connected to.
Diffstat (limited to 'app/src/ble.c')
-rw-r--r--app/src/ble.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/src/ble.c b/app/src/ble.c
index 809575d..af3c25d 100644
--- a/app/src/ble.c
+++ b/app/src/ble.c
@@ -37,6 +37,8 @@ static void connected(struct bt_conn *conn, u8_t err)
printk("Connected %s\n", addr);
+ bt_conn_le_param_update(conn, BT_LE_CONN_PARAM(0x0006, 0x000c, 5, 400));
+
if (bt_conn_set_security(conn, BT_SECURITY_L2))
{
printk("Failed to set security\n");