diff options
Diffstat (limited to 'LinuxBluetooth.cpp')
-rw-r--r-- | LinuxBluetooth.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
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<AttributeData*>* values = AttPdu::parseReadByGroupType(in); + vector<AttributeData *> *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); } - }; |