pub trait L2capCommands {
    // Required methods
    async fn connection_parameter_update_request(
        &mut self,
        params: &ConnectionParameterUpdateRequest
    );
    async fn connection_parameter_update_response(
        &mut self,
        params: &ConnectionParameterUpdateResponse
    );
}
Expand description

L2Cap-specific commands for the ActiveBlueNRG.

Required Methods§

source

async fn connection_parameter_update_request( &mut self, params: &ConnectionParameterUpdateRequest )

Send an L2CAP connection parameter update request from the peripheral to the central device.

Errors
  • Underlying communication errors.
Generated events

A command status event on the receipt of the command and an L2CAP Connection Update Response event when the master responds to the request (accepts or rejects).

source

async fn connection_parameter_update_response( &mut self, params: &ConnectionParameterUpdateResponse )

This command should be sent in response to the L2CapConnectionUpdateResponse event from the controller. The accept parameter has to be set to true if the connection parameters given in the event are acceptable.

Errors

Only underlying communication errors are reported.

Generated events

A Command Complete event is generated.

Implementors§