cancel
Showing results for 
Search instead for 
Did you mean: 

WICED Smart Bluetooth

Contributor II

Hi,

  Is it possible to change the GATT database from SDK for supporting dynamic GATT database change?

  One of the idea is to support "clone" of other BLE device in 2073x. It will be fine if SW reset to SoC is required after such change.

0 Likes
Reply
1 Solution
Moderator
Moderator

I checked with the developers and while this is technically possible, it is generally not supported.

View solution in original post

0 Likes
Reply
3 Replies
Anonymous
Not applicable

You can use bleprofile_WriteHandle function defined in bleprofile.h:

/**

* \brief Write data to GATT database by handle

* \ingroup bleprofile

*

* \details This function provides a way for the application to write data to GATT

* database using specific handle. 

*

* \param handle Handle in the GATT database.

* \param p_pdu Pointer to the \c BLEPROFILE_DB_PDU to write

*

* \return

*        \li \c 0 if the function succeeds.

*        \li \c error_code returned from the write operation.

*

*/

INT32 bleprofile_WriteHandle(UINT16 hdl, BLEPROFILE_DB_PDU *p_pdu);

Contributor II

Hi,

  Sorry, I don't mean to change the value of GATT handle, but to add/remove the attribute list in this database.

0 Likes
Reply
Moderator
Moderator

I checked with the developers and while this is technically possible, it is generally not supported.

View solution in original post

0 Likes
Reply