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

How to send the voltage value via BLE?

Hi guys,

I am using Zephyr RTOS and trying to enable my device to send the voltage data via BLE. I use two nRF52832 boards, one of them is peripheral for which I use peripheral_ht example from Zephyr documentation, and the second one is central for which I use central_ht example. For now, I can send the temperature values without problems, but my goal is to enable my peripheral device to send the measured voltage to the central board. I need this because I use the external power source for my peripheral board and I want to see if the voltage readings are correctly.

Thanks in advance and I hope that you can help me!

Best regards,

Adnan.

Parents Reply
  • Hi Sigurd,

    I tried this example, but I use the Zephyr standalone and I was not able to run it. Now, I am trying to figure out how to do that with libraries inside the Zephyr documentation. They also create this bas service, but I am not sure how to define the central node to discover the service and enable the notification. If you have any example related to this with some explanations of functions and other parameters, I will really appreciate that.

    Best regards,

    Adnan.

Children
Related