sandeepmistry / arduino-BLEPeripheral

An Arduino library for creating custom BLE peripherals with Nordic Semiconductor's nRF8001 or nR51822.
MIT License
463 stars 180 forks source link

setValue returning false after first few calls #204

Closed ghost closed 6 years ago

ghost commented 6 years ago

I'm transmitting temperature measurement characteristic values as indications. Consistently however, the first few calls to setValue return true, the client receives and ACKs the indication and I see the packets in flight. After a few successes (7 in my most recent test) however, setValue starts to return false and does not return to true responses unless I disconnect and reconnect.

Examples:

Protocol analyser showing 7 indications sent and ACKed

image

Serial monitor tracing indication values and API responses:

image

Any idea what could be cause these setValue failures?

This is on an Arduino Primo btw.

ghost commented 6 years ago

I suspect this is an arduino core nrf52 issue so I'm closing here and progressing here instead:

https://github.com/arduino-org/arduino-core-nrf52/issues/62