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

Refactor bluetooth reading #47

Merged
merged 43 commits into from
Jun 28, 2024
Merged

Refactor bluetooth reading #47

merged 43 commits into from
Jun 28, 2024

Conversation

DSIW
Copy link
Collaborator

@DSIW DSIW commented Jun 25, 2024

  • Extract ScooterReader
  • Extract BatteryReader
  • Extract CharacteristicRepository
  • Remove unused CBB capacity reading

QA checklist

  • Read state (state & power state)
  • Read primary battery SOC
  • Read primary battery cycles
  • Read secondary battery SOC
  • Read secondary battery cycles
  • Read seat closed
  • Read handlebar
  • Read AUX SOC
  • Read CBB SOC
  • Read CBB charging state
  • Update ping
  • SOCs are cached (after app restart)
  • Commands can be sent (locking & hibernation)

DSIW added 13 commits May 14, 2024 08:49
* battery-reader-test:
  Reduce duplication in tests
  Add more tests
  Add tests for BatteryReader
  Align battery reading
  Inline CacheManager and StateOfChargeReader
  Inline CycleReader
  Add tests for CycleReader
  Add tests for CacheManager
  Add tests for CycleReader
  Add test for StringReader
  Reformat
* main:
  Multiscooter backend (#40)
  Update README.md
  Typo
  Adjust changelog
  Cleanup
  Create LICENSE
  Visual fixes, attempting to debug NFC
  Add back NFC for Android
  De-capitalize app name
  Optimistic wording
  Splash screen fix on iOS
  Minor styling fixes
  Wording for smaller screens
  Visual fixes
  Use new side view in range section
  Crop scooter side pictures
  iOS fixes
  Include new side graphic
  Podfile update
  Preparation for light theme. Design upgrades.

# Conflicts:
#	lib/scooter_service.dart
@DSIW DSIW marked this pull request as ready for review June 25, 2024 06:46
@DSIW DSIW merged commit 6ed55f8 into main Jun 28, 2024
1 of 2 checks passed
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.

1 participant