#include <ble_gatts.h>
Get the value of a given attribute.
- Note
- If the attribute value is longer than the size of the supplied buffer, ble_gatts_value_t::len will return the total attribute value length (excluding offset), and not the number of bytes actually returned in ble_gatts_value_t::p_value. The application may use this information to allocate a suitable buffer size.
-
When retrieving system attribute values with this function, the connection handle may refer to an already disconnected connection. Refer to the documentation of sd_ble_gatts_sys_attr_get for further information.
- Parameters
-
| [in] | conn_handle | Connection handle. Ignored if the value does not belong to a system attribute. |
| [in] | handle | Attribute handle. |
| [in,out] | p_value | Attribute value information. |
- Return values
-