aboutsummaryrefslogtreecommitdiff
path: root/LinuxBluetooth.cpp
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2015-02-12 17:22:59 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2015-02-12 17:22:59 +0100
commit041bbe24b39190ac0b624b2709fc38dea17ad0a7 (patch)
treeaf09babb7ae7ff1ab6ed4a7973bfccdd1b8d51f9 /LinuxBluetooth.cpp
parentb55df0b8e46f46fea4d69f98a729cd237d77a6ed (diff)
downloadble-toys-041bbe24b39190ac0b624b2709fc38dea17ad0a7.tar.gz
ble-toys-041bbe24b39190ac0b624b2709fc38dea17ad0a7.tar.bz2
ble-toys-041bbe24b39190ac0b624b2709fc38dea17ad0a7.tar.xz
ble-toys-041bbe24b39190ac0b624b2709fc38dea17ad0a7.zip
o wip.
Diffstat (limited to 'LinuxBluetooth.cpp')
-rw-r--r--LinuxBluetooth.cpp12
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);
}
-
};