ble_uuid_init_from_buf

int
ble_uuid_init_from_buf(
    ble_uuid_any_t *uuid,
        const void *buf,
            size_t  len
)

Description

Constructs a UUID object from a byte array.

Parameters

ParameterDescription
uuidOn success, this gets populated with the constructed UUID.
bufThe source buffer to parse.
lenThe size of the buffer, in bytes.

Returned values

ValueCondition
0Success.
BLE_HS_EINVALThe source buffer does not contain a valid uuid.