summaryrefslogtreecommitdiff
path: root/apps/bletiny/src/bletiny.h
diff options
context:
space:
mode:
authorChristopher Collins <ccollins@apache.org>2016-06-08 08:18:23 +0800
committerChristopher Collins <ccollins@apache.org>2016-06-14 19:23:34 -0700
commitc589590065e8f04ca75f4a0503642ee61f798a17 (patch)
tree52f58fa3378b23d5776e5c03ce5a546b16e9c1ef /apps/bletiny/src/bletiny.h
parente03ce5ed696853e76205d4d1190e36fbbe3f9cc1 (diff)
BLE Host - include both addresses in conn desc.
Previous to this change, the connection descriptor returned by the GAP only contained the peer identity address. Now it contains both the peer's effective address and identity address, as well as the local effective address.
Diffstat (limited to 'apps/bletiny/src/bletiny.h')
-rw-r--r--apps/bletiny/src/bletiny.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/bletiny/src/bletiny.h b/apps/bletiny/src/bletiny.h
index 6ca6d77f..b66a301b 100644
--- a/apps/bletiny/src/bletiny.h
+++ b/apps/bletiny/src/bletiny.h
@@ -36,6 +36,7 @@ struct ble_l2cap_sig_update_params;
union ble_store_value;
union ble_store_key;
struct ble_gap_adv_params;
+struct ble_gap_conn_desc;
typedef int cmd_fn(int argc, char **argv);
struct cmd_entry {
@@ -73,9 +74,6 @@ SLIST_HEAD(bletiny_svc_list, bletiny_svc);
struct bletiny_conn {
uint16_t handle;
- uint8_t addr_type;
- uint8_t addr[6];
-
struct bletiny_svc_list svcs;
};
@@ -206,5 +204,6 @@ void print_bytes(uint8_t *bytes, int len);
int svc_is_empty(struct bletiny_svc *svc);
uint16_t chr_end_handle(struct bletiny_svc *svc, struct bletiny_chr *chr);
int chr_is_empty(struct bletiny_svc *svc, struct bletiny_chr *chr);
+void print_conn_desc(struct ble_gap_conn_desc *desc);
#endif