Diff between 963def301509c7620d497892e151dca575434867 and 5a4765e668209baed98a2dccbaa2045e19e6421a

Changed Files

File Additions Deletions Status
android/client/if-bt.c +9 -0 modified

Full Patch

diff --git a/android/client/if-bt.c b/android/client/if-bt.c
index 2b9c455..f74a56a 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, "<addr> [<transport>]"),
+	STD_METHOD(read_energy_info),
 #else
 	STD_METHODCH(create_bond, "<addr>"),
 #endif