From 5a4765e668209baed98a2dccbaa2045e19e6421a Mon Sep 17 00:00:00 2001 From: Marcin Kraglak Date: Fri, 21 Nov 2014 12:16:41 +0100 Subject: [PATCH] android/client: Add read_energy_info command --- android/client/if-bt.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/android/client/if-bt.c b/android/client/if-bt.c index 2b9c455d5..f74a56a75 100644 --- a/android/client/if-bt.c +++ b/android/client/if-bt.c @@ -397,6 +397,14 @@ static void enable_p(int argc, const char **argv) EXEC(if_bluetooth->enable); } +#if ANDROID_VERSION >= PLATFORM_VER(5, 0, 0) +static void read_energy_info_p(int argc, const char **argv) +{ + RETURN_IF_NULL(if_bluetooth); + + EXEC(if_bluetooth->read_energy_info); +} +#endif static void disable_p(int argc, const char **argv) { @@ -878,6 +886,7 @@ static struct method methods[] = { STD_METHOD(cancel_discovery), #if ANDROID_VERSION >= PLATFORM_VER(5, 0, 0) STD_METHODCH(create_bond, " []"), + STD_METHOD(read_energy_info), #else STD_METHODCH(create_bond, ""), #endif -- 2.47.3