This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Documentation or Tutorial for Zephyr example samples/bluetooth/peripheral

Hi 

I have compiled (successfully) the Zephyr example samples/bluetooth/peripheral example for the nRF52 DK (nRF52832).

I am going through the code and trying to understand it, and how to use it.

Is there any documentation or tutorial for this sample?

I have seen the previous question "Understanding Zephyr example samples/bluetooth/peripheral"

https://devzone.nordicsemi.com/f/nordic-q-a/67587/understanding-zephyr-example-samples-bluetooth-peripheral )

but that post is above my knowledge :)

Thanks

Garrett

 

  • Hi Garrett,

    We unfortunately do not have any tutorial for this specific sample and the documentation, which you can find here Bluetooth: Peripheral, does not explain the code. However, we do have other resources available for learning more about Bluetooth Low Energy in nRF Connect SDK:

    Other than that we also have our own Bluetooth examples in nRF Connect SDK showing different use cases which you can find here: Bluetooth samples.

    I hope this will help you get a better understanding!

    Best regards,

    Marte

  • Thank you Marte

    I think I will try out one of Nordic's samples. All I want to start with is a simple Bluetooth device that can respond to an app - maybe to turn an LED on and send a value on request - e.g. battery level. Is there any sample project you could recommend? I am using nRF52 DK (nRF52832)

    Thanks

    Garrett

  • Hi Garrett,

    The best sample to start with for this would be Peripheral LBS, which shows how to turn on and off LEDs. For battery you can check out the Battery Service (BAS). The code for this can be find in zephyr/include/bluetooth/services/bas.h and zephyr/subsys/bluetooth/services/bas.c. This service is used in Peripheral HIDS keyboard, so you can look at how it is used there and try to add it to the LBS sample.

    Best regards,

    Marte

Related