You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ry...@apache.org on 2018/12/21 10:17:37 UTC
[mynewt-nimble] branch master updated: btshell: Print CCCDs with
keystore-show command
This is an automated email from the ASF dual-hosted git repository.
rymek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
The following commit(s) were added to refs/heads/master by this push:
new 898f277 btshell: Print CCCDs with keystore-show command
898f277 is described below
commit 898f2779e666cd837acb82e1896b1bb81d9a338a
Author: Ćukasz Rymanowski <lu...@codecoup.pl>
AuthorDate: Fri Dec 21 10:09:47 2018 +0100
btshell: Print CCCDs with keystore-show command
---
apps/btshell/src/cmd.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/apps/btshell/src/cmd.c b/apps/btshell/src/cmd.c
index 42507fd..bfe0613 100644
--- a/apps/btshell/src/cmd.c
+++ b/apps/btshell/src/cmd.c
@@ -2467,6 +2467,16 @@ cmd_keystore_iterator(int obj_type,
console_printf("\n");
}
break;
+ case BLE_STORE_OBJ_TYPE_CCCD:
+ console_printf("Key: ");
+ console_printf("addr_type=%u ", val->cccd.peer_addr.type);
+ print_addr(val->cccd.peer_addr.val);
+ console_printf("\n");
+
+ console_printf(" char_val_handle: %d\n", val->cccd.chr_val_handle);
+ console_printf(" flags: 0x%02x\n", val->cccd.flags);
+ console_printf(" changed: %d\n", val->cccd.value_changed);
+ break;
}
return 0;
}