-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for recordings #8
Comments
Can you link the documentation for this feature? I'm not sure if/when I'll have time to implement it (depending on how complicated it is), but that information will be useful regardless. |
Well the "documentation" I was referring to was the main README.md on the polar-ble-sdk repo.
The best overview of methods to be made available in this library would be found here: https://github.dev/polarofficial/polar-ble-sdk/blob/master/sources/Android/android-communications/library/src/sdk/java/com/polar/sdk/api/PolarBleApi.java#L296-L297
For my personal use case it would suffice to have a hard-coded exercise ID and drop the list functionality and simplify the signature of all the methods (dropping the exerciseId), however it is not according to the polar spec anymore then. |
The latest commit has the code for this, but it has literally zero testing. If you want to try it anyways you can use this in your pubspec: polar:
git:
url: https://github.com/Rexios80/polar
ref: 5bcf251137220d6e108a7e020223b8c74c10d16f |
Thanks for the quick turnaround! Tested it out with my Android phone and Polar H10 sensor. The
With a further stackTrace:
Looked at the code and it seems to be a conversion issue for the interval field or something? I cant write kotlin so not entirely sure. |
Yep that's what not testing it does 🙃 |
Other things are probably still broken, but try this ref: "5d2c72a9c3adf2c0f39ceddec9534916c4a3800c" |
Bit by bit you'll figure it out with me being your tester haha. I'll give the new ref a go right now! |
Alright looks like I was able to make a successful recording. I have adapted your code so you can see the response object. Code:
The printed line is:
And the stack trace for the operation is:
So it seems to be the date parsing. Also another thing I found out: I wanted to try and get a second recording in there (which isnt possible for the H10 I believe). So I changed the exerciseId to |
Knowing the timestamp from the message above I also tried the
Results in:
The same applies to the |
Try the ref "72034c005c7e74e1262511b9af73732e85df55fe" |
3 new bugs:
|
Try "ffa98e5154a5f0952b95571f0591a30a8cba637a" |
@Rexios80 the issues on
|
I think this fixes that "eb48cd071e46304181e63d12ae5e154340ef6331" |
You're a genius! I managed to start, stop, fetch, list and remove an exercise! To get this all fully production ready we might need to look into error messages a bit more. So what happens if there are no entries found to fetch or starting another session while the H10 already has one saved. |
|
Also I fixed some more issues on ref "99431a1b72e1ab6dafc3092949e5502a9dbb884b" If you are able to test on iOS too so I could get another pair of eyes on the whole thing I would greatly appreciate it. If everything looks good to you, I'll go ahead and release it. |
One thing I keep seeing when I connect the polar is this stacktrace, it is not breaking, but it doesnt look good.
One more small issue on the latest ref. When I wake my phone up after a minute of inactivity and trigger the
As this library is a wrapper I would say that is fine. But I do think some documentation on this would help. Maybe I can write some of that for you.
I should be able to do that for you later this week with a colleague of mine.
Sure, any other tests beside iOS you want me to do? I also have a Polar verity sense here that I can use, however I havent been able to get good data from it so far. I really prefer the H10. |
So I recorded a 6 hour segment of RR intervals to test. The result of that is some errors..
Unfortunately I dont have stacktraces as these errors come from sentry. Wasn't able to test with iOS just yet. But thats in the pipeline. |
So the starting, stopping, listing, fetching recordings works but only for small recordings (few minutes max I think). After that it needs the file transfer but thats not working just yet. |
Are you getting an |
I managed to get a download. the Bigger issue though: iOS cant connect to the polar anymore :( Here is the crash report from sentry.
My current
I will try this fix found in dotintent/FlutterBleLib#530, maybe that helps. but this is then important for the documentation |
Well do you have the Bluetooth background mode enabled? |
Nope, so I will add that line in the |
It sounds like it's because of the state restoration stuff Polar added. I'm thinking my wrapper is good, and any remaining issues are to be discussed with the Polar devs themselves unless you can show me errors generated by my code. |
I released this to pub.dev in version |
Feel free to reopen this if it needs more attention |
I was going through the polar SDK and spotted the ability to record RR intervals over longer periods of time.
I wanted to use this library to implement this feature in my app.
However I didnt see the right methods to do this. The only traces I can find for this support are:
PolarExerciseData
class in the streaming data list but its unusedftpFeatureReadyStream
but that only seems to return the device id.Can you explain whether this feature is either not there, not scheduled to be implemented, still scheduled, something else?
Would love to have this as a part of the library and would be happy to test if needed.
My own devices:
The text was updated successfully, but these errors were encountered: