pub unsafe extern "C" fn bt_disable() -> i32
Expand description
@brief Disable Bluetooth
Disable Bluetooth. Can’t be called before bt_enable has completed.
This API will clear all configured identities and keys that are not persistently stored with @kconfig{CONFIG_BT_SETTINGS}. These can be restored with settings_load() before reenabling the stack.
This API does not clear previously registered callbacks like @ref bt_le_scan_cb_register, @ref bt_conn_cb_register AND @ref bt_br_discovery_cb_register. That is, the application shall not re-register them when the Bluetooth subsystem is re-enabled later.
Close and release HCI resources. Result is architecture dependent.
@return Zero on success or (negative) error code otherwise.