ARMmbed / ble-nrf51822

Nordic stack and drivers for the mbed BLE_API
Other
46 stars 51 forks source link

GattClient `write` and `read` procedures always seems to succeed even if they fail. #123

Open pan- opened 8 years ago

pan- commented 8 years ago

At the moment, there is no way to know if a read or a write procedure have failed (see: https://github.com/ARMmbed/ble/issues/181).

Nonetheless there is a way to know if those procedures succeed. If a read procedure succeed, then the client should call all callbacks previously registered by onDataRead and if the write procedure succeed, callbacks registered by onDataWritten should be called.

Unfortunately, those callbacks are always called, even if the procedure fail.

This behavior is reproducible:

ciarmcom commented 8 years ago

ARM Internal Ref: IOTSFW-2379