Other Parts Discussed in Thread: CC2650STK, CC2650, BLE-STACK
Tool/software: TI-RTOS
Hi there,
I am implementing BLE Central on CC2650 Launchpad which scans data sensors data from CC2650STK (sensor tag).
In sensor tag having individual service for individual sensors and respected characteristics for reading, enabling etc.
I am customizing all the sensor in one service and I am reading data from single characteristic. While I am reading all sensors data and building a single string in JSON format to send data to the BLE Central. All sensors data in a single string, string length 100+ bytes.
When I am reading this data from BLE central (CC2650 Launchpad) so I notice that I am not able to receive data more than 22 bytes. When I read data from Android BLE Scanner App (for testing purpose), I am getting complete data. Below code is how I am checking received data length and building string.
uint16 dataLen = pMsg->msg.readRsp.len;
uint8 data[200], i;
for (i = 0; i < dataLen; i++)
{
data[i] = pMsg->msg.readRsp.pValue[i];
}
data[i] = '\0';
Why I am not able to read complete bytes/data?
Is somewhere restricted reading limits?
Thanks