Skip to content

When Bluetooth communication is interrupted during a bolus, cannot cancel, bolus finalized while in progress #34

Description

@marionbarker

Problem

If Bluetooth connection is lost (when using a Dana Simulator rPi), in the middle of the bolus:

  • The bolus progress display vanishes at a certain distance between phone and rPi
  • I returned to be in range again during time when bolus should still be in progress, but the bolus progress did not resume
  • The full bolus was assumed to be delivered immediately (isMutable changed to false, deliveredUnits changed to 5 U) even though I could see the bolus was still in progress on the rPi

What I expect

I expect that if the communication is lost, the timer continues to show indicated bolus progress.

Please see a similar issue reported and fixed for MedtrumKit jbr7rr/MedtrumKit#92

This issue is somewhat different because the bolus was not assumed to be interrupted (like happened with Medtrum); but it would be nice if bolus progress continued to be estimated. Also want to make sure the bolus is finalized after communication is resumed - not during the interruption in comms.

This should be tested with a real pump, to which I do not have access.

Configuration

LoopKit/LoopWorkspace, feat/dev-dana-medtrum with DanaKit updated to 5c676ad.

Note - these is linting with this commit when using Xcode 26.4.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions