STM32WB5x support, arduino Print class & host capability#8
Open
thijses wants to merge 6 commits intoUberi:masterfrom
Open
STM32WB5x support, arduino Print class & host capability#8thijses wants to merge 6 commits intoUberi:masterfrom
thijses wants to merge 6 commits intoUberi:masterfrom
Conversation
FIRST version, barely tested STM32duinoBLE is a replacement library for ArduinoBLE for the STM32 platform. I needed it to run an STM32WBx5 family device. Appears to work just fine, but no promises
FIRST version, barely tested STM32duinoBLE is a replacement library for ArduinoBLE for the STM32 platform. I needed it to run an STM32WBx5 family device. Appears to work just fine, but no promises
tested some more, made connecting automatic
recent version of STM32duinoBLE no longer seems to require BLE object initialization, and no longer makes HCISharedMemTransportClass public, so this library no longer compiled correctly
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.