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,

    Thanks again for this advice. I will try to set up my own "battery voltage" service using functions from the battery voltage sample. This is okay when I need to set up this service to the peripheral device, but what to do when I need to configure the central device to read that value...should I need also for central device to define how to read this value?

    Best regards,

    Adnan.

Children
Related