zephyr::raw

Function bt_addr_to_str

source
pub unsafe extern "C" fn bt_addr_to_str(
    addr: *const bt_addr_t,
    str_: *mut i8,
    len: usize,
) -> i32
Expand description

@brief Converts binary Bluetooth address to string.

@param addr Address of buffer containing binary Bluetooth address. @param str Address of user buffer with enough room to store formatted string containing binary address. @param len Length of data to be copied to user string buffer. Refer to BT_ADDR_STR_LEN about recommended value.

@return Number of successfully formatted bytes from binary address.