Skip to content

Expose peripheral address so it can be used to identification peripheral - #4

Merged
marcprux merged 2 commits into
skiptools:mainfrom
bryanaamot:expose-device-address
Feb 23, 2025
Merged

marcprux merged 2 commits into
skiptools:mainfrom
bryanaamot:expose-device-address

Conversation

@bryanaamot

@bryanaamot bryanaamot commented Feb 23, 2025 •

Copy link
Copy Markdown
Contributor

Thank you for contributing to the Skip project! Please use this space to describe your change and add any labels (bug, enhancement, documentation, etc.) to help categorize your contribution.

Skip Pull Request Checklist:

  • REQUIRED: I have signed the Contributor Agreement
  • REQUIRED: I have tested my change locally with swift test
  • OPTIONAL: I have tested my change on an iOS simulator or device
  • OPTIONAL: I have tested my change on an Android emulator or device

@cla-bot cla-bot Bot added the cla-signed label Feb 23, 2025
internal init(gatt: BluetoothGatt, gattDelegate: BleGattCallback) {
super.init(macAddress: gatt.device.address)
self._name = gatt.device.name
self._address = result.device.address

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This doesn't compile (see the CI error). Did you mean gatt.device.address?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I built locally in Xcode and it didn't catch this error. Is there a better way to build locally to avoid this sort of thing?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Running the SkipBluetooth test cases against macOS will transpile and run the Gradle build, and would have caught this issue.

@marcprux
marcprux merged commit 35c97b0 into skiptools:main Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants