shaunmulligan / hypecycle2

The backend for an over engineered cycling computer built on a raspberry pi 2W
2 stars 0 forks source link

Implement BLE device provisioning API #12

Closed shaunmulligan closed 2 years ago

shaunmulligan commented 2 years ago
  1. One should be able to scan for device with one API call and get a list back.
  2. You should then be able to send one of those devices to another api call to provision it.
  3. It should then be saved in a list of "paired" devices in the DB
  4. On startup, it should look for and connect to devices in the "paired" list.

If we have multiple HRMs or PWR meters paired, we should have a way to indicate the preferred one (as a stretch)

shaunmulligan commented 2 years ago

This is now possible via the /sensors and /discover endpoint, so once we have frontend we can tie them together.

shaunmulligan commented 2 years ago

currently doesn't handle multiple PMs or HRMs