[PATCH 2/3] android/client: Fix help for gatt client commands

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx>

---
 android/client/if-gatt.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/android/client/if-gatt.c b/android/client/if-gatt.c
index 72f97ba..301262b 100644
--- a/android/client/if-gatt.c
+++ b/android/client/if-gatt.c
@@ -1503,8 +1503,13 @@ static void test_command_p(int argc, const char **argv)
 static struct method client_methods[] = {
 	STD_METHODH(register_client, "[<uuid>]"),
 	STD_METHODCH(unregister_client, "<client_if>"),
+#if ANDROID_VERSION >= PLATFORM_VER(5, 0, 0)
+	STD_METHODCH(scan, "[1|0]"),
+	STD_METHODCH(connect, "<client_if> <addr> [<is_direct>] [<transport]"),
+#else
 	STD_METHODCH(scan, "<client_if> [1|0]"),
 	STD_METHODCH(connect, "<client_if> <addr> [<is_direct>]"),
+#endif
 	STD_METHODCH(disconnect, "<client_if> <addr> <conn_id>"),
 	STD_METHODCH(refresh, "<client_if> <addr>"),
 	STD_METHODCH(search_service, "<conn_id> [<uuid>]"),
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux