I'm building a BLE door controller and need to generate a new nonce every time someone reads from my characteristic. Right now I can only handle writes with WriteValueEvent, but reads just return whatever value is stored.
What I need:
Generate a fresh nonce each time a client reads from my characteristic (for security reasons).
Possible solutions:
- Make ReadValueAsync virtual
- Add a ReadValueEvent like we have for writes
- Some other callback for reads
This is for a door access system where each client needs a unique challenge to prevent replay attacks.
Any ideas how to make this work with the current library?
I'm building a BLE door controller and need to generate a new nonce every time someone reads from my characteristic. Right now I can only handle writes with WriteValueEvent, but reads just return whatever value is stored.
What I need:
Generate a fresh nonce each time a client reads from my characteristic (for security reasons).
Possible solutions:
This is for a door access system where each client needs a unique challenge to prevent replay attacks.
Any ideas how to make this work with the current library?