aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2015-06-21 14:54:07 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2015-06-21 14:54:07 +0200
commit4529a75f15bffd5bb941818deef03fb50a6fc9c9 (patch)
tree921986218a8c4172c69fa78a1ee14f3b5f51bc31
parent47b736139f242a8fd2e5c6513b0c2e0b31110d77 (diff)
downloadble-toys-4529a75f15bffd5bb941818deef03fb50a6fc9c9.tar.gz
ble-toys-4529a75f15bffd5bb941818deef03fb50a6fc9c9.tar.bz2
ble-toys-4529a75f15bffd5bb941818deef03fb50a6fc9c9.tar.xz
ble-toys-4529a75f15bffd5bb941818deef03fb50a6fc9c9.zip
ble-inspect-device:
o Fixing broken key name.
-rw-r--r--apps/ble-inspect-device.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/ble-inspect-device.h b/apps/ble-inspect-device.h
index 7d93f95..0bb70aa 100644
--- a/apps/ble-inspect-device.h
+++ b/apps/ble-inspect-device.h
@@ -38,18 +38,18 @@ public:
for (auto &s: services) {
const vector<BluetoothGattCharacteristic *> characteristics = s->getCharacteristics();
- cout << "Service: UUID: " << s->getUuid() << ", has " << characteristics.size() << " characteristics" <<
- endl;
+ cout << "Service: UUID: " << s->getUuid() <<
+ ", has " << characteristics.size() << " characteristics" << endl;
for (auto &c: characteristics) {
- cout << "Characteristic: UUID: " << c->getUuid() << ", properties: " << (int) c->getProperties() <<
- endl;
+ cout << "Characteristic: UUID: " << c->getUuid() <<
+ ", properties: " << (int) c->getProperties() << endl;
}
}
}
int main(app_execution &execution) override {
- string mac_str = execution.vm["mac"].as<string>();
+ string mac_str = execution.vm["device"].as<string>();
BluetoothSystem bluetoothSystem;