I am writing a custom Service. I need to catch when a Client tries to Read certain characteristics or Write to other characteristics. What is the best practice for Authorizing the Read or Write? Done as soon as the event is caught by the application, or can I perform this after a series of callback functions are performed to verify the handle and value? I certain wouldn't want to create a race condition nor bottleneck for authorizing incoming Read or Write. Especially during an initialization process when many read/writes occur.
Thanks guys.