diff options
author | Sathish Narasimman <sathish.narasimman@intel.com> | 2016-12-22 12:01:02 +0530 |
---|---|---|
committer | Sathish Narasimman <sathish.narasimman@intel.com> | 2017-01-05 12:35:21 +0530 |
commit | 55190c90a1929a81ab57cd0c009051fc2a514c09 (patch) | |
tree | 515adeae281e04b875574db8f761070c24c3eafc /samples/bluetooth | |
parent | 46a7989a5dc3a1be26cfdccec9a958818343ef50 (diff) |
Bluetooth: samples: handsfree application indicator callback
Displays the present value of the indicators in the Handsfree
application.
Change-Id: I666ff2b15e70de8c1a26b902077d79c5c1a9d5fe
Signed-off-by: Sathish Narasimman <sathish.narasimman@intel.com>
Diffstat (limited to 'samples/bluetooth')
-rw-r--r-- | samples/bluetooth/handsfree/src/main.c | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/samples/bluetooth/handsfree/src/main.c b/samples/bluetooth/handsfree/src/main.c index 7845cace7..91e001cde 100644 --- a/samples/bluetooth/handsfree/src/main.c +++ b/samples/bluetooth/handsfree/src/main.c @@ -38,9 +38,51 @@ static void disconnected(struct bt_conn *conn) printk("HFP HF Disconnected!\n"); } +static void service(struct bt_conn *conn, uint32_t value) +{ + printk("Service indicator value: %u\n", value); +} + +static void call(struct bt_conn *conn, uint32_t value) +{ + printk("Call indicator value: %u\n", value); +} + +static void call_setup(struct bt_conn *conn, uint32_t value) +{ + printk("Call Setup indicator value: %u\n", value); +} + +static void call_held(struct bt_conn *conn, uint32_t value) +{ + printk("Call Held indicator value: %u\n", value); +} + +static void signal(struct bt_conn *conn, uint32_t value) +{ + printk("Signal indicator value: %u\n", value); +} + +static void roam(struct bt_conn *conn, uint32_t value) +{ + printk("Roaming indicator value: %u\n", value); +} + +static void battery(struct bt_conn *conn, uint32_t value) +{ + printk("Battery indicator value: %u\n", value); +} + static struct bt_hfp_hf_cb hf_cb = { .connected = connected, .disconnected = disconnected, + .service = service, + .call = call, + .call_setup = call_setup, + .call_held = call_held, + .signal = signal, + .roam = roam, + .battery = battery, }; static void bt_ready(int err) |