<div dir="ltr">Could this live in sensorfwd? There's a whole bunch of BLE Sensor Profiles and so you can expose them through there using the QT Sensor framework where that makes sense</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 2, 2018 at 8:17 AM, <span dir="ltr"><<a href="mailto:piggz1@gmail.com" target="_blank">piggz1@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Devs, and Sailors<br>
<br>
Im after comments/suggestions on the following. Working with Jens, the dev from Laufhelden, we came up with the idea for adding HRM support by interfacing with an external app/sevice via DBus. This would save Laufhelden from having to carry code for each type of device. In my case, im reading the heartrate via my BLE amazfit bip watch.<br>
<br>
ATM code exists for the watch app, and laufhelden, and has been merged, but it can obviously be changed if there are problems.<br>
<br>
See <br>
<a href="https://github.com/jdrescher2006/Laufhelden/commit/1403805ab0cdcadaf45ee777acaaeb8ee618de4d" rel="noreferrer" target="_blank">https://github.com/<wbr>jdrescher2006/Laufhelden/<wbr>commit/<wbr>1403805ab0cdcadaf45ee777acaaeb<wbr>8ee618de4d</a><br>
<a href="https://github.com/piggz/harbour-amazfish/blob/master/src/dbushrm.h" rel="noreferrer" target="_blank">https://github.com/piggz/<wbr>harbour-amazfish/blob/master/<wbr>src/dbushrm.h</a><br>
<br>
Questions<br>
1. Is the approach generally sound?<br>
2. Is the use of org.sailfishos.heartrate as the service ok?<br>
3. Is the api ok?<br>
-void start()<br>
-void stop()<br>
-int heartRata()<br>
-int batteryLevel()<br>
<br>
Especially interested in hearing from sailors about the service name, and other devs who may wish to integrate with Laufhelden this way. I know mal is working on a similar HRM app.<br>
<br>
If needed, this could be discussed at the mer-meeting, tho i can rarely make it myself.<br>
<br>
thanks<br>
<span class="HOEnZb"><font color="#888888">-- <br>
Sent from my Jolla<br>
______________________________<wbr>_________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.<wbr>sailfishos.org</a></font></span></blockquote></div><br></div>