cancel
Showing results for 
Search instead for 
Did you mean: 

Another question about BlueNRG - ERR_UNSPECIFIED_ERROR

Steven Burck
Associate III
Posted on March 21, 2016 at 14:27

I'm working with the BlueNRG in a system that has 4 services.  I'll go into a bit more detail:

Service 1 has 4 characteristics : 

1 - RW 20 bytes (reduced to 17, see below).

2 - RN 20 bytes

3 - RW 20 bytes

4 - RN 8 bytes

Service 2 has 3 characteristics:

1 - W 2 bytes

2 - RN 8 bytes

3 - W 8 bytes

Service 3 has 5 characteristics:

1 - RW 20 bytes

2 - RN 20 bytes

3 - RN 20 bytes

4 - RN 20 bytes

5 - RN 20 bytes

and finally, service 4 has 2 characteristics:

1 - RW 8 bytes

2 - RN 6 bytes

My problem is that, in the above configuration, the call to aci_gatt_add_char for the last characteristic fails with ERR_UNSPECIFIED_ERROR with the values as shown above.  However, if I reduce the first characteristic of service 1 from 20 to 17 (by removing three ''reserved for future use'' bytes from it), then everything is fine.

The error began to occur when one of the other characteristics grew from 18 to 20 bytes (don't recall which one).  This leads me to believe that there is some memory cap that I have reached.  I would expect to get ERR_MEM_CAPACITY_EXCEEDED, but as I said before, I get ERR_UNSPECIFIED_ERROR.

#api #bluenrg
0 REPLIES 0