Soletta™ Framework
|
Representation of a GATT Attribute. More...
#include <sol-gatt.h>
Data Fields | |
void * | _priv |
uint16_t | flags |
int(* | read )(struct sol_gatt_pending *op, uint16_t offset) |
The response for this operation will be returned by calling sol_gatt_pending_reply() passing a valid buffer, or an error. More... | |
enum sol_gatt_attr_type | type |
void * | user_data |
struct sol_bt_uuid | uuid |
int(* | write )(struct sol_gatt_pending *op, struct sol_buffer *buf, uint16_t offset) |
The response for this operation will be returned by calling sol_gatt_pending_reply(), the buf parameter will be ignored. More... | |
Representation of a GATT Attribute.
void* sol_gatt_attr::_priv |
uint16_t sol_gatt_attr::flags |
Referenced by print_attr().
int(* sol_gatt_attr::read)(struct sol_gatt_pending *op, uint16_t offset) |
The response for this operation will be returned by calling sol_gatt_pending_reply() passing a valid buffer, or an error.
enum sol_gatt_attr_type sol_gatt_attr::type |
Referenced by print_attr().
void* sol_gatt_attr::user_data |
struct sol_bt_uuid sol_gatt_attr::uuid |
Referenced by print_attr().
int(* sol_gatt_attr::write)(struct sol_gatt_pending *op, struct sol_buffer *buf, uint16_t offset) |
The response for this operation will be returned by calling sol_gatt_pending_reply(), the buf parameter will be ignored.
op | The pending operation. |
buf | The buffer that will be written into the attribute, If the function returns success, it takes the ownership of the buffer. |
offset | The offset into which the write operation was made. |