Skip to content
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

Adding a stateless upload path for Nightscout treatments #177

Merged
merged 2 commits into from
Jul 31, 2016

Conversation

loudnate
Copy link
Collaborator

No description provided.

@ps2
Copy link
Owner

ps2 commented Jul 31, 2016

This looks good. I'm curious as to how you'll handle upload failures in loop, but I guess that's my next place to review, and this change seems useful independent of what you're actually doing in loop.

@loudnate
Copy link
Collaborator Author

It will have a similar retry frequency (next history add, e.g. 5 min) as you have today. Changing this to NSURLSessionUploadTask is also a hint to the system to allow the upload to run in the background.

I ran the stack overnight (with simulated uploading) and everything went well. History data and its upload status is also visible in the LoopKit-provided view controllers.

@loudnate loudnate merged commit 07ac736 into dev Jul 31, 2016
@loudnate loudnate deleted the nightscout-pump-events branch July 31, 2016 17:02
ps2 pushed a commit that referenced this pull request Aug 2, 2016
* Adding a stateless upload path for Nightscout treatments

* Clarifying return order of history command
@ps2 ps2 mentioned this pull request Aug 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants