BleApp_GattServerCallback get a error:procedureError

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

BleApp_GattServerCallback get a error:procedureError

756 Views
shizelin
Contributor I

hi NXP team:

After my device is connected to the phone,After testing for a while,Probabilistically, the phone cannot receive data,At the same time, there is an error Log on my device

my code

static void BleApp_GattServerCallback (deviceId_t deviceId, gattServerEvent_t* pServerEvent)
{
uint16_t handle;
uint8_t status;
uint8_t i;
#if DEBUG_BLUETOOTH
PRINTF("BleApp_GattServerCallback=%d\r\n",pServerEvent->eventType);
#endif
switch (pServerEvent->eventType)
{

case gEvtError_c:
{
PRINTF("stephen gEvtError_c:error:0x%x,procedureType:0x%x\r\n",pServerEvent->eventData.procedureError.error,pServerEvent->eventData.procedureError.procedureType);
}
break;

case gEvtAttributeWritten_c:
{

handle = pServerEvent->eventData.attributeWrittenEvent.handle;
status = gAttErrCodeNoError_c;

GattServer_SendAttributeWrittenStatus(deviceId, handle, status);


}
break;
case gEvtHandleValueConfirmation_c:
{
BleApp_HandleValueConfirmation (deviceId);
}
break;
default:
break;
}
}

from the log  we got:

BleApp_GattServerCallback=5 ----> gEvtError_c, /*!< An error appeared during a Server-initiated procedure. */

stephen gEvtError_c:error:0x5(gBleOutOfMemory_c = gBleStatusBase_c | 0x05, /*!< An internal memory allocation failed. */),procedureType:0x2( gSendNotification_c, /*!< Procedure initiated by GattServer_SendNotification. */

I have been stuck with this problem for a long time,i need nxp team help

0 Kudos
Reply
1 Reply

724 Views
Ricardo_Zamora
NXP TechSupport
NXP TechSupport

Hi,

 

Hope you are doing well. I am aware that there are two threads with the same question, so I will close this thread to facilitate communication and continue the support in this other thread: https://community.nxp.com/t5/Wireless-Connectivity/BleApp-GattServerCallback-get-a-error-procedureEr....

 

Best Regards,

Ricardo

0 Kudos
Reply