Struct StoredAttribute

Synopsis

#include <bta/gatt/database.h>

struct StoredAttribute

Description

No description yet.

Source

Lines 33-60 in bta/gatt/database.h.

struct StoredAttribute {
  uint16_t handle;
  bluetooth::Uuid type;

  union {
    /* primary or secondary service definition */
    struct {
      bluetooth::Uuid uuid;
      uint16_t end_handle;
    } service;

    /* included service definition */
    struct {
      uint16_t handle;
      uint16_t end_handle;
      bluetooth::Uuid uuid;
    } included_service;

    /* characteristic deifnition */
    struct {
      uint8_t properties;
      uint16_t value_handle;
      bluetooth::Uuid uuid;
    } characteristic;

    /* for descriptor definition we don't store value*/
  } value;
};





Add Discussion as Guest

Log in to DocsForge