generated from StanfordBDHG/SwiftPackageTemplate
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix duplicated delivery of Omron Measurements (#9)
# Fix duplicated delivery of Omron Measurements ## ♻️ Current situation & Problem This PR fixes some minor issues with the current implementation of Omron devices. StanfordSpezi/SpeziBluetooth#46 made two important changes to improve the overall reliability of the implementation. First, it fixes an issue with notify-only characteristics (like weight and blood pressure measurement characteristics) where the `onChange` would not be called. Secondly, while the device is subscribing to characteristic notifications, the state is still set to `connecting`, this allows us to properly filter the initial measurement notifications that Omron devices send when subscribing to characteristics. Further, this allowed us to fix an issue where we couldn't properly determine the point in time where a weight scale was fully paired by the user. Additionally this PR adds a small time label for the `MeasurementsRecordedSheet` and adds German localization. ## ⚙️ Release Notes * Fixed duplicated deliver of measurements for Omron devices. * Fixed pairing with Omron weight scales. * Added a time label to the `MeasurementsRecordedSheet`. * Added German localization. ## 📚 Documentation Added a small documentation article that collects knowledge about Omron devices. ## ✅ Testing We used manual testing with real Omron devices to verify the implementation. Some additional unit tests were added to ensure no regression occur. ## 📝 Code of Conduct & Contributing Guidelines By submitting creating this pull request, you agree to follow our [Code of Conduct](https://github.com/StanfordSpezi/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/StanfordSpezi/.github/blob/main/CONTRIBUTING.md): - [x] I agree to follow the [Code of Conduct](https://github.com/StanfordSpezi/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/StanfordSpezi/.github/blob/main/CONTRIBUTING.md).
- Loading branch information
Showing
17 changed files
with
628 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.