STM32WB5x support, arduino Print class & host capability #8
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.
i wanted to use this nice library for a project using an STM32WB55, which only took a few lines ('STM32duinoBLE library)
then i decided to implement the Arduino Print class inheritance (mostly for fun)
then i needed two STM32WB55's to talk to each other, so i added a host-mode (which is really what prompted me to make this pull-request. I think it's pretty useful to have a simple library for basic 2-way communication between microcontrollers using BLE. It's something i've used BT classic (using an ESP32) for several times).
The code needs a critical eye, probably some reformatting (if you want) and perhaps an update of the README, but it does at least appear to work (on my machine ;) ).
The dependence on the STM32duinoBLE also comes with the requirement of having the right BLE stack flashed, so a reference to those instructions might be wise.
One notable issue i'm still investigating is that BLE and I2C on the STM32WB55 don't seem to mix very well. Long I2C operations can kill the BLE connection, so there's probably an interrupt/subroutine blocker in the I2C code somewhere.