Trait bluenrg::l2cap::Commands[][src]

pub trait Commands {
    type Error;
    fn connection_parameter_update_request(
        &mut self,
        params: &ConnectionParameterUpdateRequest
    ) -> Result<(), Self::Error>;
fn connection_parameter_update_response(
        &mut self,
        params: &ConnectionParameterUpdateResponse
    ) -> Result<(), Self::Error>; }

L2Cap-specific commands for the ActiveBlueNRG.

Associated Types

Type of communication errors.

Required Methods

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).

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