I am reading the device manager code of SDK10.0.0 for nrf51822. I came across the dm_gatts_context_t
, dm_gatt_client_context_t
. I didn't understand what they store in their structure. Are they necessary? My plan is to write my own lightweight device manager.
Also, i want to use g++
compiler. Is it possible to compile SDK with c++
compiler?
typedef struct
{
uint32_t flags; /**< Flags identifying the stored attributes. */
uint32_t size; /**< Size of stored attributes. */
uint8_t attributes[DM_GATT_SERVER_ATTR_MAX_SIZE]; /**< Array to hold the server attributes. */
} dm_gatts_context_t;
typedef struct
{
void * p_dummy; /**< Placeholder, currently unused. */
} dm_gatt_client_context_t;