Skip to content

Reboot #471

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

Merged
merged 3 commits into from
Jan 17, 2025
Merged

Reboot #471

merged 3 commits into from
Jan 17, 2025

Conversation

ball-hayden
Copy link
Contributor

Adds the ability to request device reset.

Also updates the example app, stealing some bits from #470 (since it's blocked) to use Expo Router. Key change is device selection now happens in a separate screen, so scanning stops once a device is selected


Self Review:

  • Appropriate test coverage
  • Relevant Documentation updated

Smoke Tests:

  • I can reset a device from iOS
  • I can reset a device from Android

@ball-hayden ball-hayden self-assigned this Jan 16, 2025
@ball-hayden ball-hayden requested review from Koalk and a team January 16, 2025 12:06
@ball-hayden ball-hayden enabled auto-merge January 16, 2025 12:06
@@ -41,7 +44,7 @@ class ReactNativeMcuManagerModule : Module() {
try {
val device: BluetoothDevice = bluetoothAdapter.getRemoteDevice(macAddress)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The way we get the bluetooth adapter there seems to be deprecated in the latest versions of the ble library. If we are bumping the ble library we should also get that fixed

private val bluetoothManager = context.getSystemService(Context.BLUETOOTH_SERVICE) as BluetoothManager
private val bluetoothAdapter = bluetoothbluetoothManager.getAdapter()

@ball-hayden ball-hayden requested a review from Koalk January 17, 2025 12:55
@ball-hayden ball-hayden merged commit deb15da into main Jan 17, 2025
7 checks passed
@ball-hayden ball-hayden deleted the reboot branch January 17, 2025 13:17
Copy link

🎉 This PR is included in version 4.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants