This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Characteristics read

Hi all, is there a way to set a characteristics when a read command arrive from APP, or it's necessary to set it before to read?

I see for example battery service, it update the battery level with a timer clock and when you read, you read the past value if timer haven't expires, yet. If i want read the value of battery when a read request is made, what it is the correct method? I also think to use a notification, but i prefer use the read.

Thanks, Anna

Related