discovery/ble: avoid panic for invalid characteristics

  Sometimes Gatt reader reads invalid characteristics causing panic.
  I couldn't figure out what the root cause was. It can be a bug in
  our code or a bug in Android.

  This CL added more checks for invalid characteristics to avoid panic.

Change-Id: I54ad09dacd31181e84ab683ed68204e5a32daaa4
3 files changed
tree: caeb28dfbfa09b90287ac93c2c3dda9aecf22f4d
  1. cmd/
  2. examples/
  3. internal/
  4. lib/
  5. runtime/
  6. services/
  7. test/
  8. .gitignore
  9. AUTHORS
  10. CONTRIBUTING.md
  11. CONTRIBUTORS
  12. envvar.go
  13. envvar_test.go
  14. LICENSE
  15. PATENTS
  16. README.md
  17. VERSION
README.md

Vanadium

This repository contains a reference implementation of the Vanadium APIs.

Unlike the APIs in https://github.com/vanadium/go.v23, which promises to provide backward compatibility this repository makes no such promises.