att: support for delayed att read response

This commit is contained in:
Matthias Ringwald 2018-02-23 11:41:33 +01:00
parent e404a68886
commit e8e7403e04
2 changed files with 5 additions and 0 deletions

View File

@ -347,6 +347,10 @@ static int att_server_process_validated_request(att_server_t * att_server){
// callback with handle ATT_READ_RESPONSE_PENDING
att_server_client_read_callback(att_server->connection.con_handle, ATT_READ_RESPONSE_PENDING, 0, NULL, 0);
// free reserved buffer
l2cap_release_packet_buffer();
return 0;
}
#endif

View File

@ -409,6 +409,7 @@ typedef enum {
ATT_SERVER_REQUEST_RECEIVED,
ATT_SERVER_W4_SIGNED_WRITE_VALIDATION,
ATT_SERVER_REQUEST_RECEIVED_AND_VALIDATED,
ATT_SERVER_READ_RESPONSE_PENDING,
} att_server_state_t;
typedef struct {