Christoff van Zyl
Christoff van Zyl

Reputation: 1

ESP32 BLE Client only reads 8 characters from characteristic

The Arduino ESP32 BLE_Client example returns only 8 characters when reading the BLE sensor's characteristic, i.e. 3ffe50a8, instead of the expected 16 characters (0x6701340022001F00) that I see when using the nRF Connect app.

I have tried changing the data type for pData from uint8_t* to uint16_t* in the notifyCallback call, and also in BLERemoteCharacteristic::registerForNotify, however this just caused more issues down the line.

Does anyone have an idea how to get the read and return the full value 16 character value from the characteristic?

Upvotes: 0

Views: 234

Answers (1)

Kyriakos Geroudes
Kyriakos Geroudes

Reputation: 37

You have to increase the MTU size to 512

Upvotes: 0

Related Questions