int ble_uuid_init_from_buf( ble_uuid_any_t *uuid, const void *buf, size_t len )
Constructs a UUID object from a byte array.
Parameter | Description |
---|---|
uuid | On success, this gets populated with the constructed UUID. |
buf | The source buffer to parse. |
len | The size of the buffer, in bytes. |
Value | Condition |
---|---|
0 | Success. |
BLE_HS_EINVAL | The source buffer does not contain a valid uuid. |