ble-nrf51822 icon indicating copy to clipboard operation
ble-nrf51822 copied to clipboard

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

Open pan- opened this issue 8 years ago • 1 comments

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:

  • read:
    • CharacteristicReadWrite_test_4
    • CharacteristicReadWrite_test_15
  • write:
    • CharacteristicReadWrite_test_8
    • CharacteristicReadWrite_test_16
    • DescriptorReadWrite_test_09
    • DescriptorReadWrite_test_05

pan- avatar Mar 18 '16 16:03 pan-

ARM Internal Ref: IOTSFW-2379

ciarmcom avatar Mar 18 '16 16:03 ciarmcom