Skip to main content
stiger
Associate II
April 30, 2022
Solved

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 ??

  • April 30, 2022
  • 1 reply
  • 1222 views

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

    This topic has been closed for replies.
    Best answer by Sebastien DENOUAL

    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.

    1 reply

    Sebastien DENOUAL
    ST Employee
    May 2, 2022

    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.

    stiger
    stigerAuthor
    Associate II
    May 2, 2022

    Thank you @Sebastien DENOUAL​ for your suggestion,

    Yes, this is the problem of ATT_VALUE_ARRAY_SIZE