aboutsummaryrefslogtreecommitdiff
path: root/apps/sm-get-value.h
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2015-06-30 14:37:06 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2015-06-30 14:37:06 +0200
commit441cd0b11186d66493798551e1102eb246f1af9f (patch)
tree3cdb5b1dea6b782cbf59e172807f9dc15e7bd418 /apps/sm-get-value.h
parentaf63bd5688731b57551ac161c0dad26a0b4557d7 (diff)
downloadble-toys-441cd0b11186d66493798551e1102eb246f1af9f.tar.gz
ble-toys-441cd0b11186d66493798551e1102eb246f1af9f.tar.bz2
ble-toys-441cd0b11186d66493798551e1102eb246f1af9f.tar.xz
ble-toys-441cd0b11186d66493798551e1102eb246f1af9f.zip
Getting started on a port to OSX.
Diffstat (limited to 'apps/sm-get-value.h')
-rw-r--r--apps/sm-get-value.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/sm-get-value.h b/apps/sm-get-value.h
index 0535f68..58e7005 100644
--- a/apps/sm-get-value.h
+++ b/apps/sm-get-value.h
@@ -53,6 +53,10 @@ public:
("format", default_format, "Output format");
}
+ void add_extra_options(po::options_description & options) override {
+ add_ble_options(options);
+ }
+
int main(app_execution &execution) override {
__attribute__((unused))
BluetoothSystem bluetoothSystem;
@@ -71,7 +75,7 @@ public:
Mac mac = Mac::parseMac(MAC);
- auto adapter = getAdapter(0);
+ auto adapter = bluetoothSystem.getAdapter(ble_adapter_name());
auto &device = adapter->getDevice(mac);