8 years, 3 months ago.

Trying to output accelerometer data to iphone via bluetooth. Help!!

Hi there,

I am a complete beginner with microcontrollers and need help for a project.

I have an ADXL345 accelerometer and a red bear BLE nano and am trying to output the accelerometer data to iphone (or PC if easier).

Any suggestions?

1 Answer

5 years, 2 months ago.

Hi Daniel,

There are two spammers who like to revive this topic, they are really good at digging this old thread up.

Even if this was asked 3 years ago, I believe the answer is still valuable. For those scenarios which would like to transfer data from device to mobile, the BLE_GattServer is a very good start, you can refer to the documentation here.

https://os.mbed.com/docs/mbed-os/v5.11/apis/gattserver.html

And the latest example code is here.

https://github.com/ARMmbed/mbed-os-example-ble/tree/master/BLE_GattServer

Thanks for asking, hope you are doing well now.

Please feel free to ask me any questions!

Desmond