From 91e54cf9150b37036447d423857d2bd18e4bf02b Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Wed, 5 Sep 2018 14:14:42 +0200 Subject: Major overhaul of BLE code: o Starting to remove shared_ptr. The code shouldn't be shared between threads, any thread safety will have to be built on the outside. o Better service discovery, don't fail when there are multiple requests that have to be done. o AttributeData was buggy, now it is just less than ideal. o Much better ByteBuffer. Now it is a simple view + cursor. --- apps/ble-bts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/ble-bts.cpp') diff --git a/apps/ble-bts.cpp b/apps/ble-bts.cpp index 1e76f60..82d6d43 100644 --- a/apps/ble-bts.cpp +++ b/apps/ble-bts.cpp @@ -94,7 +94,7 @@ public: cout << "bytes " << buf.getSize() << endl; for (int i = 0; i < buf.getSize(); i++) { - cout << "byte " << i << " = " << hex << buf.get8(i) << endl; + cout << "byte " << i << " = " << hex << buf.peek8(i) << endl; } } }; -- cgit v1.2.3