Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

Smart Bluetooth Forum Discussions

hachc_2137126
Level 5
Level 5
10 likes given 5 likes given First like received

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
1 Solution

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

View solution in original post

0 Likes
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);

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

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

0 Likes