StanfordSpezi / SpeziBluetooth

Connect and communicate with Bluetooth devices.
https://swiftpackageindex.com/StanfordSpezi/SpeziBluetooth/documentation/spezibluetooth
MIT License
11 stars 2 forks source link

Support connection with multiple peripherals of the same type #44

Closed Supereg closed 1 month ago

Supereg commented 1 month ago

Description

Spezi currently has the limitation that a Module of the same type can only be loaded once. Trying to load duplicates results in a runtime crash. This is currently a limitation for SpeziBluetooth to support connecting with multiple typed BluetoothDevices at the same time.

Reproduction

Expected behavior

Multiple devices should be capable of being connected. SpeziBluetooth itself has the necessary infrastructure to support that. Also all APIs suggest that this is possible.

Additional context

No response

Code of Conduct

Supereg commented 1 month ago

The necessary infrastructure was provided in https://github.com/StanfordSpezi/Spezi/pull/110. A follow-up PR should make sure that SpeziBluetooth tags the 1.6.0 release.