Skip to content

Conversation

@thijses
Copy link

@thijses thijses commented Oct 16, 2023

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.

thijses and others added 6 commits June 30, 2023 13:33
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant