Struct esp32_nimble::OnWriteArgs
source · pub struct OnWriteArgs<'a> { /* private fields */ }
Implementations§
source§impl OnWriteArgs<'_>
impl OnWriteArgs<'_>
pub fn current_data(&self) -> &[u8] ⓘ
pub fn recv_data(&self) -> &[u8] ⓘ
pub fn desc(&self) -> &BLEConnDesc
sourcepub fn reject(&mut self)
pub fn reject(&mut self)
If the reject is called, no value is written to BLECharacteristic or BLEDescriptor. A write error (0xFF) is sent to the sender.
sourcepub fn reject_with_error_code(&mut self, error_code: u8)
pub fn reject_with_error_code(&mut self, error_code: u8)
If the reject is called, no value is written to BLECharacteristic or BLEDescriptor. The argument error code is sent to the sender.