5 years, 3 months ago.

onDataRead callback of GattServer does not work

Hi,

I'm attempting to create a custom GattServer. I need to reliably transfer data between an Android client and the server. I am able to get an Android client to read from the GattServer, but the callback which I registered to fire when a read occurs, does not activate.

I'm working on the UBlox ODIN-W2 platform.

The platform uses the CORDIO stack.

I've taken a look at the Cordio GattServer code under:

mbed-os/features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioGattServer.ccp

It has a function shown below:

bool GattServer::isOnDataReadAvailable() const { return false; }

which seems to indicate that onDataRead would not be supported by a CORDIO stack.

I've not got a good understand of the CORDIO stack, so my interpretation may well be wrong!

Should I expect onDataRead callback to work?

Hi,

Same issue with my target DISCO-L475VG-IOT01A...

posted by Anthony Aubert 25 Jan 2019
Be the first to answer this question.