Tool/software:
Hi,
Currently I am working on basic_ble Peripheral profile project and basic_ble Central profile project.
After successful connection and notification enable am trying to send an 20 bytes of data from central to peripheral and the data receiving in peripheral.
While sending 20 bytes of data in a interval of 100ms continuously from central to peripheral we are getting an status as blePending in central. But with the interval of 400ms data receiving in peripheral.
I have tried increasing Max Number of PDUs to 255 and Max Size of PDU as 255 still facing an blePending issue.
bool Central_sendGattWrite(uint8_t *pData, uint8_t len)
{
attPrepareWriteReq_t req;
status_t status = FAILURE;
req.pValue = GATT_bm_alloc(scConnHandle, ATT_PREPARE_WRITE_REQ, len, NULL);
if (req.pValue != NULL)
{
req.handle = 19;
req.len = len;
memcpy(req.pValue, pData, len);
status = GATT_WriteLongCharValue(scConnHandle, &req, getSelfEntity);
if (status != SUCCESS)
{
UART2_write(uart, &status,1,0);
GATT_bm_free((gattMsg_t*) &req, ATT_PREPARE_WRITE_REQ);
}
}
return status;
}
Kindly help us with this issue.
SDK Version : simplelink_lowpower_f3_sdk_8_10_01_02
CCS version: CCS 12.7.1
regards,
Vignesh.