Skip to content

Does Zephyr project provide sample code for sending battery voltage through Bluetooth battery service? #61883

Answered by nordicjm
snowuyl asked this question in General
Discussion options

You must be logged in to vote

BAS is supported out of the box in zephyr yes, you can see how to use it in some of the sample applications: https://github.com/zephyrproject-rtos/zephyr/blob/main/samples/bluetooth/peripheral_csc/src/main.c#L386 though you would need to calculate the level that it shows to a client with your own code as that would be device specific (the sample above sends a dummy changing value)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by henrikbrixandersen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request A request for a new feature
2 participants
Converted from issue

This discussion was converted from issue #61874 on August 25, 2023 09:16.