zephyr::raw

Function bt_br_set_discoverable

Source
pub unsafe extern "C" fn bt_br_set_discoverable(
    enable: bool,
    limited: bool,
) -> i32
Expand description

@brief Enable/disable set controller in discoverable state.

Allows make local controller to listen on INQUIRY SCAN channel and responds to devices making general inquiry. To enable this state it’s mandatory to first be in connectable state.

If the device enters limited discoverable mode, the controller will leave from discoverable mode after the duration of @kconfig{BT_LIMITED_DISCOVERABLE_DURATION} seconds in the limited discoverable mode.

@param enable Value allowing/disallowing controller to become discoverable. @param limited Value allowing/disallowing controller to enter limited discoverable mode.

@return Negative if fail set to requested state or requested state has been already set. Zero if done successfully.