Struct stm32wb_hci::vendor::stm32wb::event::AttPrepareWritePermitRequest
source · pub struct AttPrepareWritePermitRequest {
pub conn_handle: ConnectionHandle,
pub attribute_handle: AttributeHandle,
pub offset: usize,
/* private fields */
}Expand description
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.
Fields§
§conn_handle: ConnectionHandleConnection handle on which the GATT procedure is running.
attribute_handle: AttributeHandleThe handle of the attribute to be written.
offset: usizeThe offset of the first octet to be written.
Implementations§
Trait Implementations§
source§impl Clone for AttPrepareWritePermitRequest
impl Clone for AttPrepareWritePermitRequest
source§fn clone(&self) -> AttPrepareWritePermitRequest
fn clone(&self) -> AttPrepareWritePermitRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more