dc_bluetooth_str2addr

Function dc_bluetooth_str2addr 

Source
pub unsafe extern "C" fn dc_bluetooth_str2addr(
    address: *const c_char,
) -> dc_bluetooth_address_t
Expand description

Convert a string to a bluetooth address.

The string is expected to be in the format XX:XX:XX:XX:XX:XX, where each XX is a hexadecimal number specifying an octet of the 48-bit address.

@param[in] address A null-terminated string. @returns The bluetooth address on success, or zero on failure.