Function bt_le_scan_cb_register

Source
pub unsafe extern "C" fn bt_le_scan_cb_register(
    cb: *mut bt_le_scan_cb,
) -> i32
Expand description

@brief Register scanner packet callbacks.

Adds the callback structure to the list of callback structures that monitors scanner activity.

This callback will be called for all scanner activity.

@param cb Callback struct. Must point to memory that remains valid.

@retval 0 Success. @retval -EEXIST if @p cb was already registered.