mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-30 07:34:27 +08:00
android/hal-gatt-api: Add Server Send Response
This commit is contained in:
parent
1574417acd
commit
8fbe112020
@ -1779,6 +1779,23 @@ Android HAL name: "gatt" (BT_PROFILE_GATT_ID)
|
||||
|
||||
Opcode 0x23 - Send Response command/response
|
||||
|
||||
Command parameters: Connection ID (4 octets)
|
||||
Transaction ID (4 octets)
|
||||
Status (4 octets)
|
||||
GATT Response (4 octets)
|
||||
|
||||
Valid GATT Response: GATT Value (607 octets)
|
||||
Handle (2 octets)
|
||||
|
||||
Valid GATT Value: Value (600 octets)
|
||||
Handle (2 octets)
|
||||
Offset (2 octets)
|
||||
Length (2 octets)
|
||||
Authentication Request (1 octet)
|
||||
Response parameters: <none>
|
||||
|
||||
In case of an error, the error response will be returned.
|
||||
|
||||
Opcode 0x81 - Register Client notification
|
||||
Opcode 0x82 - Scan Result notification
|
||||
Opcode 0x83 - Connect Device notification
|
||||
|
@ -786,6 +786,15 @@ struct hal_cmd_gatt_server_send_indication {
|
||||
uint8_t value[0];
|
||||
} __attribute__((packed));
|
||||
|
||||
#define HAL_OP_GATT_SERVER_SEND_RESPONSE 0x23
|
||||
struct hal_cmd_gatt_server_send_response {
|
||||
int32_t conn_id;
|
||||
int32_t trans_id;
|
||||
int32_t status;
|
||||
uint8_t len;
|
||||
uint8_t data[0];
|
||||
} __attribute__((packed));
|
||||
|
||||
/* Notifications and confirmations */
|
||||
|
||||
#define HAL_POWER_OFF 0x00
|
||||
|
Loading…
Reference in New Issue
Block a user