Function esp_idf_sys::ble_uuid_from_str
source · pub unsafe extern "C" fn ble_uuid_from_str(
uuid: *mut ble_uuid_any_t,
str_: *const c_char,
) -> c_int
Expand description
@brief Converts the specified UUID string to ble_uuid_any_t representation. If the UUID is recognised as Bluetooth SIG UUID, it will provide its 32-bit or 16-bit representation.
Example 128-bit string representations: o “12345678-1234-1234-1234-123456789abc” o “12345678123412341234123456789abc”
@param uuid Destination UUID. @param str The source string UUID.
@return 0 on success, BLE_HS_EINVAL if the specified UUID string has wrong size or contains disallowed characters.