Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
the STM32duinoBLE library provides an ArduinoBLE compatibility layer for several STM32 microcontrollers (including the STM32WB55 that i'm using). Using this library, i've added STM32 support to phyphox BLE. (i did almost nothing, as the STM32duinoBLE library is quite good, and includes all the difficult code, i basically just copy-pasted some example code).
I tested it briefly (using only the STM32WB55 nucleo dev kit that i have on hand), so there is significant room for error, BUT assuming that the STM32duinoBLE library is relatively on-par/up-to-date with the ArduinoBLE library, all the Nano 33 BLE (or Nano IOT?) code should work.
I copied the contents of the _NanoIOT header and .cpp, only adding some minor prefixes. I would like to see this reformatted as: one general header + cpp for 'default' ArduinoBLE implementations, and an STM32 and NanoIOT header that both point to this general header. Is that something the maintainers of this repo would prefer to handle? (to make sure the code stays legible), or should i take a swing at it?