From b00bb711e14559bd1cdfadc09be78b75b8eee6c5 Mon Sep 17 00:00:00 2001 From: Grzegorz Kolodziejczyk Date: Thu, 27 Feb 2014 14:28:42 +0100 Subject: [PATCH] android/hal-gatt-api: Add Server Disconnect --- android/hal-ipc-api.txt | 8 ++++++++ android/hal-msg.h | 7 +++++++ 2 files changed, 15 insertions(+) diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt index 6fd805cdd..f7cc073c1 100644 --- a/android/hal-ipc-api.txt +++ b/android/hal-ipc-api.txt @@ -1687,6 +1687,14 @@ Android HAL name: "gatt" (BT_PROFILE_GATT_ID) In case of an error, the error response will be returned. Opcode 0x1a - Disconnect Peripheral command/response + + Command parameters: Server (4 octets) + Remote address (6 octes) + Connection ID (1 octet) + Response parameters: + + In case of an error, the error response will be returned. + Opcode 0x1b - Add Service command/response Opcode 0x1c - Add Included Service command/response Opcode 0x1d - Add Characteristic command/response diff --git a/android/hal-msg.h b/android/hal-msg.h index ac87dd2ea..d3cff8ce1 100644 --- a/android/hal-msg.h +++ b/android/hal-msg.h @@ -719,6 +719,13 @@ struct hal_cmd_gatt_server_connect { uint8_t is_direct; } __attribute__((packed)); +#define HAL_OP_GATT_SERVER_DISCONNECT 0x1a +struct hal_cmd_gatt_server_disconnect { + int32_t server_if; + uint8_t bdaddr[6]; + int32_t conn_id; +} __attribute__((packed)); + /* Notifications and confirmations */ #define HAL_POWER_OFF 0x00 -- 2.47.3