summaryrefslogtreecommitdiffstats
path: root/plugins/lib/bluetooth/hal-bt.h
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2018-09-19 12:08:34 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2018-10-08 15:57:27 +0200
commit07ac2284bdceae1d7ee75fe799da3285aedc3229 (patch)
treef6a1c372271bbd511c1db90df8849b29d47f32cb /plugins/lib/bluetooth/hal-bt.h
parent2026507973e610be8dac306f4a0adbda449e465f (diff)
hal-bt: Check presence of a bluetooth receiver
Disable hal-bt plugin if no bluetooth receiver is connected at plugin initialization. To be bale to check if there is no connected bluetooth receiver, use call to 'power' verb of 'Bluetooth-Manager' api. Change-Id: Idd301d2106e8b2e79e25969cc2c1a2a4e4194711 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to 'plugins/lib/bluetooth/hal-bt.h')
-rw-r--r--plugins/lib/bluetooth/hal-bt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/lib/bluetooth/hal-bt.h b/plugins/lib/bluetooth/hal-bt.h
index ad94a7e..af5f6c3 100644
--- a/plugins/lib/bluetooth/hal-bt.h
+++ b/plugins/lib/bluetooth/hal-bt.h
@@ -25,6 +25,7 @@
#define HAL_BT_PLUGIN_NAME "hal-bt"
#define BT_MANAGER_API "Bluetooth-Manager"
+#define BT_MANAGER_GET_POWER_INFO "power"
#define BT_MANAGER_SUBSCRIBE_VERB "subscribe"
#define BT_MANAGER_GET_DEVICES_VERB "discovery_result"