Skip to content

[Enhancement] Read events for GATT characteristics #68

Description

@Kyemate

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestnot-reviewedIssue that needs reviewed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions