|
I wonder if I can do setValue constantly while, lets say with the same value, is wasting CPU time or is attacking the Bluetooth stack? So I can keep doing setValue and it wont do anything until I do a set value with a different value than it had. Or on the other hand I also wonder if when I do getValue it attacks the bluetooth stack constantly or just read from ram |
Answered by
h2zero
Mar 5, 2022
Replies: 1 comment
|
The call to |
0 replies
Answer selected by
Frtrillo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The call to
setValue()will just set the value in ram and does not invoke the BLE stack. The same applies togetValue(). Only when the peer device issues a read command, or a value notification/indication is sent, will the BLE stack be involved.