This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Nordic Blinky Profile to broadcast temperature sensor data

Hello, I'm a beginner with the BLE technology and nRF52 is a good tool to start with it.

Currently, I have a setup that allows a Raspberry Pi and an nRF52 to communicate with one another via BLE protocol.

In the raspberry pi side, I created a python script to toggle the on-board LED of the nRF52 as described by the Nordic Blinky Profile. Furthermore, I can also read the current status of the LED. I did this with the help of the nrfConnect app to monitor the values and characteristics of the service.

I just write the desired value the characterstic LED and read it. It is working fine.

Now, I wish to allow the nRF52 to transmit temperature sensor reading via BLE to the raspberry pi. This temperature sensor is connected to the nrf52 via I2C protocol.

My question is: is this possible? Can this be made by just using the Nordic Blinky Profile? How?

I made some initial study on the functions below but I still can't pinpoint on how to make this happen:

buttons_init();
ble_stack_init();
gap_params_init();
services_init();
advertising_init();
conn_params_init();

Thank you so much.

Best Regards, Jade

Related