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 2017/02/01 22:12:35 UTC

[2/8] incubator-mynewt-core git commit: apps/bletiny: Handle identity resolved event

apps/bletiny: Handle identity resolved event


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/cafce1f1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/cafce1f1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/cafce1f1

Branch: refs/heads/develop
Commit: cafce1f10c5500a31d56cf9a4350a77ebdf00e8b
Parents: f52185c
Author: Andrzej Kaczmarek <an...@codecoup.pl>
Authored: Wed Feb 1 17:31:16 2017 +0100
Committer: Andrzej Kaczmarek <an...@codecoup.pl>
Committed: Wed Feb 1 22:24:57 2017 +0100

----------------------------------------------------------------------
 apps/bletiny/src/main.c | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/cafce1f1/apps/bletiny/src/main.c
----------------------------------------------------------------------
diff --git a/apps/bletiny/src/main.c b/apps/bletiny/src/main.c
index 4e69f40..e958da6 100755
--- a/apps/bletiny/src/main.c
+++ b/apps/bletiny/src/main.c
@@ -1013,6 +1013,13 @@ bletiny_gap_event(struct ble_gap_event *event, void *arg)
                        event->mtu.value);
         return 0;
 
+    case BLE_GAP_EVENT_IDENTITY_RESOLVED:
+        console_printf("identity resolved ");
+        rc = ble_gap_conn_find(event->identity_resolved.conn_handle, &desc);
+        assert(rc == 0);
+        print_conn_desc(&desc);
+        return 0;
+
     default:
         return 0;
     }