I'm trying to set up a system where the sample rate of data being notified to the client from various sensors can be changed by updating a configuration characteristic in that service.
What I have right now is one service, holding a data characteristic and a sample rate characteristic. I can receive data back to the client just now at an interval, and set the value of the sample rate characteristic, but it doesn't modify the timer yet. My project is based off the custom service and characteristic tutorials.
What would be the best way to implement a timer that is tied to the service in a way that it's prescaler/timeout value can be modified? I would also intend to have various other services with their own timers so it would be good to find a solution that can scale.