Mbed OS Reference
Loading...
Searching...
No Matches
GattWriteAuthCallbackParams Struct Reference

GATT write authorization request event. More...

#include <GattCallbackParamTypes.h>

Data Fields

ble::connection_handle_t connHandle
 Handle of the connection that triggered the event. More...
 
GattAttribute::Handle_t handle
 Attribute Handle to which the write operation applies. More...
 
uint16_t offset
 Offset for the write operation. More...
 
uint16_t len
 Length of the incoming data. More...
 
const uint8_t * data
 Incoming data. More...
 
GattAuthCallbackReply_t authorizationReply
 Authorization result. More...
 

Detailed Description

GATT write authorization request event.

Definition at line 316 of file gatt/GattCallbackParamTypes.h.

Field Documentation

◆ connHandle

Handle of the connection that triggered the event.

Definition at line 320 of file gatt/GattCallbackParamTypes.h.

◆ handle

Attribute Handle to which the write operation applies.

Definition at line 325 of file gatt/GattCallbackParamTypes.h.

◆ offset

uint16_t offset

Offset for the write operation.

Definition at line 330 of file gatt/GattCallbackParamTypes.h.

◆ len

uint16_t len

Length of the incoming data.

Definition at line 335 of file gatt/GattCallbackParamTypes.h.

◆ data

const uint8_t* data

Incoming data.

Definition at line 340 of file gatt/GattCallbackParamTypes.h.

◆ authorizationReply

GattAuthCallbackReply_t authorizationReply

Authorization result.

The callback sets this parameter. If the value is set to AUTH_CALLBACK_REPLY_SUCCESS, then the write request is accepted; otherwise, an error code is returned to the peer client.

Definition at line 349 of file gatt/GattCallbackParamTypes.h.