korynelson / heart_rate_monitor

0 stars 0 forks source link

Refactor service/characteristic to be generic #3

Open korynelson opened 1 month ago

korynelson commented 1 month ago

Currently some of the attributes are hard coded. This needs to be more generic to pull all the available data so it's generic.

  1. Make the code generic so we don't have to hard code attributes
  2. If there are no attributes for a device give a graceful fail/default. Something like "Unknown" or "Unavailable"
korynelson commented 1 month ago

The Web Bluetooth API documentation should be helpful here. https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/requestDevice