BLE Host - Additional debug logging.
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/519e5164 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/519e5164 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/519e5164 Branch: refs/heads/nrf_cputime Commit: 519e5164bbee1e3c75e679f9d5dc1201af3b8f93 Parents: 5ae196a Author: Christopher Collins <ccoll...@apache.org> Authored: Tue Mar 28 16:34:15 2017 -0700 Committer: Christopher Collins <ccoll...@apache.org> Committed: Tue Mar 28 16:58:41 2017 -0700 ---------------------------------------------------------------------- net/nimble/host/src/ble_att_clt.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/519e5164/net/nimble/host/src/ble_att_clt.c ---------------------------------------------------------------------- diff --git a/net/nimble/host/src/ble_att_clt.c b/net/nimble/host/src/ble_att_clt.c index 4a93171..f310a6f 100644 --- a/net/nimble/host/src/ble_att_clt.c +++ b/net/nimble/host/src/ble_att_clt.c @@ -918,7 +918,20 @@ ble_att_clt_tx_write_cmd(uint16_t conn_handle, return BLE_HS_ENOTSUP; #endif + uint8_t b; int rc; + int i; + + BLE_HS_LOG(DEBUG, "ble_att_clt_tx_write_cmd(): "); + for (i = 0; i < OS_MBUF_PKTLEN(txom); i++) { + if (i != 0) { + BLE_HS_LOG(DEBUG, ":"); + } + rc = os_mbuf_copydata(txom, i, 1, &b); + assert(rc == 0); + BLE_HS_LOG(DEBUG, "0x%02x", b); + } + rc = ble_att_clt_tx_write_req_or_cmd(conn_handle, req, txom, 0); if (rc != 0) {