-
Notifications
You must be signed in to change notification settings - Fork 720
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
Bluetooth Heartbeat #351
Bluetooth Heartbeat #351
Conversation
|
||
case .dexcomG7: | ||
if let name = device.name { | ||
return name.hasPrefix("DXCM") || name.hasPrefix("DX02") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you change this to be "DX", I believe it will pick up any Dexcom transmitter. G6 or G7, ONE or ONE+ or Stelo. But that would need to be tested. Maybe @MikePlante1 could try this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might have other UUID-Strings, need to test that. I think i have an old G6 somewhere to test with. I can add it later on (after merge).
Test Part 1:When I first built the app, I was asked if I wanted to allow Bluetooth - said yes. View LogsTapped on settings and used new Suggestion Expand on the log name to include LoopFollow and/or the display name. Test with used G7 sensorTapped on settings and used new I can see the connect/disconnect in the Xcode log file:
I will let that run for a while with app in background using a glucose trace that will trigger low and high alarms. |
Log file name does now include LoopFollow in order to be more descriptive. 6c0fd1b |
Comment - more testing is comingDo we expect LoopFollow to wake up and show the alarms or just the notification banner? This test is with an iPhone 7 running iOS 15.8.3. I am not sure if this is an iOS 15 limitation, but the LF app did not come out of background mode to report a high glucose.
|
Wow, this is exciting! Perhaps a dumb question, but is there any way Loop Follow could use my Apple Watch for the Bluetooth heartbeat? |
I've been fine combing the internet to see if someone has figured out a way to use Apple Watch as a mean to automatically wake up apps in background on an iPhone - but, without success... Please let Jonas know if you find something regarding this anywhere (Most of how different Apple devices communicate between each other is not publicly available code) |
I updated my 4 phones to the most recent version. All are working as expected. I also captured some screenshots for use with the documentation. The graphic below shows steps to selecting Background Refresh Type: The graphic below shows the steps if you choose to use a Dexcom transmitter (G6/ONE/Anubis) or sensor (G7/ONE+). This can be a device that has expired but still has an active battery. If the person using Follow is also wearing a sensor, they should choose their own sensor. Behavior is similar for the RileyLink option. The RSSI is a measure of the strength of the signal. It is normal for the Dexcom device to disconnect. It will reconnect regularly. |
…tting an enacted record
I tested again with 3 test phones and 1 real phone with the latest commit, a819fe1. All continues to work smoothly. (I did not do any battery testing.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on code review and testing.
What's New: