diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt
index 8d512dd..43b79ec 100644
--- a/android/hal-ipc-api.txt
+++ b/android/hal-ipc-api.txt
Service ID Elements (variable)
Valid Number of Service ID Elements: 0x01
0x02
- Valid Service ID Element: GATT ID (17 octets)
+ Valid Service ID Element: UUID (16 octets)
+ Instance ID (1 octet)
Is Primary (1 octet)
Valid GATT ID: UUID (16 octets)
Instance ID (1 octet)
GATT Service ID (18 octets)
Number of Handles (4 octet)
- Valid GATT Service ID: GATT ID (17 octets)
+ Valid GATT Service ID: UUID (16 octets)
+ Instance ID (1 octets)
Is Primary (1 octet)
Valid GATT ID: UUID (16 octets)
Notification parameters: Connection ID (4 octets)
GATT Service ID (18 octets)
- Valid GATT Service ID: GATT ID (17 octets)
+ Valid GATT Service ID: UUID (16 octets)
+ Instance ID (1 octets)
Is Primary (1 octet)
- Valid GATT ID: UUID (16 octets)
- Instance ID (1 octet)
Opcode 0x87 - Get Characteristic notification
Notification parameters: Status (4 octets)
Server (4 octets)
- Service ID (18 octets)
+ GATT Service ID (18 octets)
Service Handle (4 octets)
- Valid Service ID: ID (17 octets)
+ Valid Service ID: UUID (16 octets)
+ Instance ID (1 octet)
Is Primary (1 octet)
- Valid ID: UUID (16 octets)
- Instance ID (1 octet)
-
Opcode 0x96 - Included Service Added notification
Notification patemeters: Status (4 octets)
diff --git a/android/hal-msg.h b/android/hal-msg.h
index 69da8a3..5e69a50 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
} __attribute__((packed));
#define HAL_OP_GATT_CLIENT_GET_INCLUDED_SERVICE 0x09
-struct hal_gatt_gatt_id {
+struct hal_gatt_srvc_id {
uint8_t uuid[16];
uint8_t inst_id;
-} __attribute__((packed));
-
-struct hal_gatt_srvc_id {
- struct hal_gatt_gatt_id gatt_id;
uint8_t is_primary;
} __attribute__((packed));
} __attribute__((packed));
#define HAL_OP_GATT_CLIENT_GET_CHARACTERISTIC 0x0a
+struct hal_gatt_gatt_id {
+ uint8_t uuid[16];
+ uint8_t inst_id;
+} __attribute__((packed));
+
struct hal_cmd_gatt_client_get_characteristic {
int32_t conn_id;
struct hal_gatt_srvc_id srvc_id;