From 041bbe24b39190ac0b624b2709fc38dea17ad0a7 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Thu, 12 Feb 2015 17:22:59 +0100 Subject: o wip. --- LinuxBluetooth.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'LinuxBluetooth.cpp') diff --git a/LinuxBluetooth.cpp b/LinuxBluetooth.cpp index d274f84..a15f350 100644 --- a/LinuxBluetooth.cpp +++ b/LinuxBluetooth.cpp @@ -165,15 +165,12 @@ namespace trygvis { D << "read: " << r << " bytes"; - vector* values = AttPdu::parseReadByGroupType(in); + vector *values = AttPdu::parseReadByGroupType(in); - D << "READ_BY_GROUP_TYPE response has " + (values->size()) + " values"; + D << "READ_BY_GROUP_TYPE response has " + to_string(values->size()) + " values"; - for(auto& data: *values) { -// strstring s; -// s << hex << setfill('0') << setw(2) << ar[i] << " "; -// data.bytes -// D << data. + for (auto &data: *values) { + D << "handle: " << data->handle << ", value: " << data->value.toString(); } delete values; @@ -342,5 +339,4 @@ namespace trygvis { BluetoothAdapter *getAdapter(int hciDevice) { return new LinuxBluetoothAdapter(hciDevice); } - }; -- cgit v1.2.3