Skip to content

Commit 85b1dd0

Browse files
committed
Merge branch 'main' into add_dexcom_one_plus
2 parents 4503041 + a6a6e4c commit 85b1dd0

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

G7SensorKit/BluetoothServices.swift

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,13 @@ extension CBUUIDRawValue where RawValue == String {
1515
}
1616
}
1717

18-
1918
enum SensorServiceUUID: String, CBUUIDRawValue {
20-
case deviceInfo = "180A"
2119
case advertisement = "FEBC"
2220
case cgmService = "F8083532-849E-531C-C594-30F1F86A4EA5"
2321

2422
case serviceB = "F8084532-849E-531C-C594-30F1F86A4EA5"
2523
}
2624

27-
28-
enum DeviceInfoCharacteristicUUID: String, CBUUIDRawValue {
29-
// Read
30-
// "DexcomUN"
31-
case manufacturerNameString = "2A29"
32-
}
33-
34-
3525
enum CGMServiceCharacteristicUUID: String, CBUUIDRawValue {
3626

3727
// Read/Notify
@@ -61,7 +51,6 @@ extension G7PeripheralManager.Configuration {
6151
return G7PeripheralManager.Configuration(
6252
serviceCharacteristics: [
6353
SensorServiceUUID.cgmService.cbUUID: [
64-
//CGMServiceCharacteristicUUID.communication.cbUUID, // Unused for now
6554
CGMServiceCharacteristicUUID.authentication.cbUUID,
6655
CGMServiceCharacteristicUUID.control.cbUUID,
6756
CGMServiceCharacteristicUUID.backfill.cbUUID,

G7SensorKitUI/Views/G7SettingsView.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,14 @@ struct G7SettingsView: View {
123123
Toggle(LocalizedString("Upload Readings", comment: "title for g7 config settings to upload readings"), isOn: $viewModel.uploadReadings)
124124
}
125125
}
126+
127+
Section () {
128+
Button(LocalizedString("Open Dexcom App", comment:"Opens the dexcom G7 app to allow users to manage active sensors"), action: {
129+
if let appURL = URL(string: "dexcomg7://") {
130+
UIApplication.shared.open(appURL)
131+
}
132+
})
133+
}
126134

127135
Section () {
128136
if !self.viewModel.scanning {

0 commit comments

Comments
 (0)