bluetooth: BAS: add battery level status char to bas service

Added the battery level status char to bas service
as per bas_1.1 spec. Added BSIM test for BAS service
to test the NTF/INDs of BAS characteristics.

Signed-off-by: Nithin Ramesh Myliattil <niym@demant.com>
This commit is contained in:
Nithin Ramesh Myliattil 2024-08-08 17:49:46 +02:00 committed by Anas Nashif
commit baa5683e59
19 changed files with 1643 additions and 110 deletions

View file

@ -37,5 +37,10 @@ app=tests/bsim/bluetooth/samples/central_hr_peripheral_hr \
extra_conf_file=${ZEPHYR_BASE}/samples/bluetooth/central_hr/prj.conf \
conf_overlay=${ZEPHYR_BASE}/samples/bluetooth/central_hr/overlay-phy_coded.conf \
compile
if [ ${BOARD} == "nrf52_bsim" ]; then
app=tests/bsim/bluetooth/samples/battery_service \
conf_file=prj.conf \
compile
fi
wait_for_background_jobs