cancel
Showing results for 
Search instead for 
Did you mean: 

I am try to add a characteristic to a service using aci_gatt_add_char(...) API on STEVAL-IDB009V1 hardware kit. But it return 0x48 value error. can this issue resolve without can char. length ??

stiger
Associate II

If changed char length 450 to 140 now every thing will be fine. but when i put char length 450 or more than 140. It will return 0x48 error value.

The paramerters i was passed, these are

 ret = aci_gatt_add_char(chatServHandle, UUID_TYPE_128, (Char_UUID_t *)&uuid, /*(char length)/* 450, CHAR_PROP_READ, ATTR_PERMISSION_NONE, GATT_DONT_NOTIFY_EVENTS,

       /* encription key*/ 0, 1, &TestRXTXcharHandle);

1 ACCEPTED SOLUTION

Accepted Solutions
Sebastien DENOUAL
ST Employee

Hi @stiger​ ,

This 0x48 error is "OUT of Memory"

Let me establish the link with this forum entry : aci_gatt_add_char() returned BLE_STATUS_OUT_OF_MEMORY - Looks similar to your isse?

To make it shorts, 2 points :

  • Check your GATT database size
  • While calling aci_gatt_add_service functoin : make sure you declared a sufficient number of attribute records.

Regards,

Sebastien.

View solution in original post

2 REPLIES 2
Sebastien DENOUAL
ST Employee

Hi @stiger​ ,

This 0x48 error is "OUT of Memory"

Let me establish the link with this forum entry : aci_gatt_add_char() returned BLE_STATUS_OUT_OF_MEMORY - Looks similar to your isse?

To make it shorts, 2 points :

  • Check your GATT database size
  • While calling aci_gatt_add_service functoin : make sure you declared a sufficient number of attribute records.

Regards,

Sebastien.

Thank you @Sebastien DENOUAL​ for your suggestion,

Yes, this is the problem of ATT_VALUE_ARRAY_SIZE