The function readCharacteristic() of Android-BLE-Library-2.4.0 can't read all data

Hi:

When i read data from the device nrf52833 to android app, only get 600byte data and it should be 4096byte. The app use the Android-BLE-Library-2.4.0 lib.

The nrf52833's read response function is under code:

uint8_t data_source[4096];
static ssize_t read_data_source(struct bt_conn *conn, const struct bt_gatt_attr *attr, void *buf,uint16_t len, uint16_t offset)
{

    return bt_gatt_attr_read(conn, attr, buf, len, offset, data_source, 4096);
}

Thanks!

Sam

 
Parents Reply Children
No Data
Related