Hi,
My apologies if I'm missing something in the documentation, but putting
an example together here we are almost done with a barebones app
implementing Nordic's UART service to reuse the apps we've published for
iOS, Android, OS X, Python, etc., which use Nordic UART as an easy
lowest common denominator.
We had a couple questions though:
1. How would we subscribe to CCCD changes on the peripheral side?
The use case here is to know when the Central enables or disables the
notify/indicate bits (or really any changes) in the CCCD since we
probably want to keep sensor(s) powered off until they are actually
needed, i.e. when the Central starts subscribing to data from them. This
is an important power consideration in my opinion and the CCCD changes
to be easy to capture. Is this handled internally (which I would propose
reconsidering if true), or can the CCCD updates be easily captured?
2. How is a failed 'indicate' message handled?
Indicate generates an ACK, but are there any examples or documentation
around how to properly check for the response message to know if the
message arrived?
Again, sorry if this is clearly documented or obvious in an example, but
I didn't spot anything looking around. I can read a characteristic
descriptor, but I think we we really need is a callback rather than
having to poll ... which may already be possible, though???
Kevin