pub struct AttPrepareWritePermitRequest {
pub conn_handle: ConnectionHandle,
pub attribute_handle: AttributeHandle,
pub offset: usize,
// some fields omitted
}
This event is given to the application when a prepare write request is received by the server
from the client.
This event will be given to the application only if the event bit for this event generation is
set when the characteristic was added. When this event is received, the application has to
check whether the value being requested for write is allowed to be written and respond with the
command gatt_write_response
. Based on the response from the application, the attribute value
will be modified by the stack. If the write is rejected by the application, then the value of
the attribute will not be modified and an error response will be sent to the client, with the
error code as specified by the application.
conn_handle: ConnectionHandle
Connection handle on which the GATT procedure is running.
attribute_handle: AttributeHandle
The handle of the attribute to be written.
The offset of the first octet to be written.
Returns the data to be written.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more