gpedal icon indicating copy to clipboard operation
gpedal copied to clipboard

API Documentation

Open BernhardSchlegel opened this issue 5 years ago • 3 comments
trafficstars

Hi Chad,

super cool project ! Where did you find the Bluetooth API spec for the trainers? Took your software for a spin yesterday :dancers:

Best, Bernhard.

BernhardSchlegel avatar Oct 21 '20 06:10 BernhardSchlegel

I remember starting here with the web Bluetooth API's

https://developers.google.com/web/updates/2015/07/interact-with-ble-devices-on-the-web

And unfortunately, the docs I used to make sense of reading data from the bike sensors directly are no longer online. They used to live here:

https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.characteristic.cycling_power_measurement.xml

I'm not sure if those docs exist anywhere anymore.

Here's my code for handling the cycling characteristics which might help:

https://github.com/chadj/gpedal/blob/master/src/Meter.js

chadj avatar Oct 21 '20 13:10 chadj

Thanks so much :) Is it possible, that they just deleted the UI and that this is the underlying document? For future use: also atttached.

org.bluetooth.characteristic.csc_measurement.xml.txt

BernhardSchlegel avatar Oct 22 '20 16:10 BernhardSchlegel

Yeah, I do believe that is the case. The old docs were just much easier to consume.

chadj avatar Oct 22 '20 17:10 chadj