This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Multiple attributes under a characteristic

Hi,

I am working on nrF52832 as a gatt peipheral (server)and have a requirement to send 12KB of data over a custom service. I have done the following:

1. Created a custom service called bulk transfer, set the characteristic size to 244 bytes. 

2. Using a timer, I send break down the 12KB in to packets of 244 bytes and send every 10ms over the notify pro[erty.

3. I have been able able to send the entire data to the gatt client successfully.

What I would like to know is whether there is a better way to do it?

For ex: Is it possible to have multiple attributes under my custom characteristic?

is the below possible?

Service ABC: Char xyz: ATT1(128bytes),ATT2(128 bytes),... n...

if yes,

1. Then keeping the nrF52832's ram in mind, how many such attributes can i have? 

2. How do I add these attributes to a characteristics??

Parents
  • Hi Sandeep, 

    It's good that you have found the information. You can't add multiple value attributes under a characteristic. However I don't see the point of having multiple attributes. It won't make transferring data faster. Doing what you are doing is correct. Simply use one characteristic/attribute to send chunks of data as quick as possible is the correct way. 

Reply
  • Hi Sandeep, 

    It's good that you have found the information. You can't add multiple value attributes under a characteristic. However I don't see the point of having multiple attributes. It won't make transferring data faster. Doing what you are doing is correct. Simply use one characteristic/attribute to send chunks of data as quick as possible is the correct way. 

Children
No Data
Related