Arm Mbed OS support forum

Heartrate example and MX30003sensor - BLE service with sensor

Hi all

I am trying to use a MAX30003 to read heartrate and send it via BLE using the heartrate example

I have the code for reading the MAX30003 (

And the heartrate example is this one (

My problem is that I don’t really know how to join the 2 codes.

Where am I supposed to put all the MAX30003 SPI code (that is in the main from the max example) in the heartrate example?

Can anyone help? Or has anyone an example of heartrate (or other ble service) ble with a real sensor being updated?

thanks for any help

Did you resolve this?

What development board are you using? nRF52…?

Are you working on online compiler or mbed studio?