2016-03-21 06:27 AM
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 bytes3 - RW 20 bytes4 - RN 8 bytesService 2 has 3 characteristics:1 - W 2 bytes2 - RN 8 bytes3 - W 8 bytesService 3 has 5 characteristics:1 - RW 20 bytes2 - RN 20 bytes3 - RN 20 bytes4 - RN 20 bytes5 - RN 20 bytesand finally, service 4 has 2 characteristics:1 - RW 8 bytes2 - RN 6 bytesMy 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