[SOLVED]nRF8001 BLE heart rate service with Spark Core


I got the Adafruit nRF8001 breakout board and was able to successfully build and use the Nordic UART example with it.

I was wondering if there’s any code I could refer to, to understand how to provide GATT services like heart rate using this board. There is such an example for Arduino here:

I was trying to port it to the Spark Core, but I don’t know enough about BLE/ACI or Spark Core APIs to make it build without errors. I was wondering if anyone could point me in the right direction - maybe there’s an example out there?


This might be super useful: https://github.com/NordicSemiconductor/nrf8001-ble-uart-spark-io

Thanks, but this is the same link I had mentioned this my post. (It implements UART over GATT.) I guess I’ll need to dig in and try to understand it…

Opps sorry didn’t clicked those links! :smiley:

To anyone facing the same issue:

You just need to combine the information in:


I just needed to make a few small changes (usual Arduino vs. Spark Core stuff) and I am now able to advertise heart rate over BLE using the Adafruit nRF8001 breakout board.