Skip to content

STM32 support #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@ The purpose of this library is to use the phyphox app (see www.phyphox.org) to p
- Arduino Uno R4 Wifi (see note below)
- senseBox MCU with NINA-B31 module
- ESP 32
- STM32 (e.g. STM32WB55)

Note: The Arduino Nano 33 IoT and the Arduino uno R4 are somewhat unusual. You will need to install the ArduinoBLE library to use it and you will need to call "PhyphoxBLE::poll()" periodically for it to work.

Note: When using the NINA-B31 module you must call PhyphoxBLE::poll() periodically (in loop() ) or the library will not work.
The same applies to STM32

Note: to use STM32 BLE, you need the STM32duinoBLE library, and (at least for the STM32WBx5) the appropriate BLE stack (see Copro binaries)

## Concept of phyphox

Expand All @@ -29,6 +33,7 @@ Alternatively, you can download this repository here as a zip file from github a

You will may also need to install an BLE library specific to your board:
- ArduinoBLE for the Arduino Nano 33 IoT
- STM32duinoBLE for an STM32

## Usage

Expand Down
2 changes: 1 addition & 1 deletion src/experiment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ void PhyphoxBleExperiment::getFirstBytes(char *buffArray, const char *DEVICENAME
strcat(buffArray, DEVICENAME);

if(MTU!=20){
char add[0];
char add[10];
sprintf(add, "\" mtu=\"%i", MTU);
strcat(buffArray, add);
}
Expand Down
4 changes: 3 additions & 1 deletion src/phyphoxBLE_NRF52.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef PHYPHOXBLE_NRF52_H
#define PHYPHOXBLE_NRF52_H
#define NDEBUG
#if !defined(NDEBUG) && defined(ARDUINO_ARCH_MBED)
#define NDEBUG
#endif

#include <phyphoxBle.h>
#include <mbed.h>
Expand Down
Loading