You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/01/27 06:12:46 UTC
[08/10] incubator-mynewt-larva git commit: bleshell - Handle
connection parameter request.
bleshell - Handle connection parameter request.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/commit/28400777
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/tree/28400777
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/diff/28400777
Branch: refs/heads/master
Commit: 2840077758e0ce29f716eb8eb86e9eb5465b9d7e
Parents: 6271de7
Author: Christopher Collins <cc...@gmail.com>
Authored: Tue Jan 26 21:52:49 2016 -0500
Committer: Christopher Collins <cc...@gmail.com>
Committed: Wed Jan 27 00:12:02 2016 -0500
----------------------------------------------------------------------
project/bleshell/src/main.c | 5 +++++
1 file changed, 5 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/28400777/project/bleshell/src/main.c
----------------------------------------------------------------------
diff --git a/project/bleshell/src/main.c b/project/bleshell/src/main.c
index a895343..45e5ffd 100755
--- a/project/bleshell/src/main.c
+++ b/project/bleshell/src/main.c
@@ -830,6 +830,11 @@ bleshell_on_connect(int event, int status, struct ble_gap_conn_ctxt *ctxt,
bleshell_print_conn_desc(&ctxt->desc);
bleshell_printf("\n");
break;
+
+ case BLE_GAP_EVENT_CONN_UPDATE_REQ:
+ bleshell_printf("connection update request; status=%d ", status);
+ *ctxt->self_params = *ctxt->peer_params;
+ break;
}
return 0;