zephyr/samples/bluetooth/st_ble_sensor
Kumar Gala a1b77fd589 zephyr: replace zephyr integer types with C99 types
git grep -l 'u\(8\|16\|32\|64\)_t' | \
		xargs sed -i "s/u\(8\|16\|32\|64\)_t/uint\1_t/g"
	git grep -l 's\(8\|16\|32\|64\)_t' | \
		xargs sed -i "s/s\(8\|16\|32\|64\)_t/int\1_t/g"

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-06-08 08:23:57 -05:00
..
src zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
CMakeLists.txt samples: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
prj.conf bluetooth: kconfig: Do not assign promptless BT_DEBUG 2020-01-14 13:41:29 +01:00
README.rst Samples: Bluetooth: st_ble_demo: Update to new GPIO API 2020-02-05 12:00:36 +01:00
sample.yaml Samples: Bluetooth: Add ST BLE Demo sample 2019-12-10 12:25:06 +02:00

.. _bluetooth-st_ble_sensor:

Bluetooth: ST BLE Sensor Demo
#############################

Overview
********

This application demonstrates BLE peripheral by exposing vendor-specific
GATT services. Currently only button notification and LED service are
implemented. Other BLE sensor services can easily be added.
See `BlueST protocol`_ document for details of how to add a new service.

Requirements
************

* `ST BLE Sensor Android app <ST BLE Sensor app>`_
* A board with BLE support

Building and Running
********************

This sample can be found under :zephyr_file:`samples/bluetooth/st_ble_sensor` in the
Zephyr tree.

Open ST BLE Sensor app and click on "CONNECT TO A DEVICE" button to scan BLE devices.
To connect click on the device shown in the Device List.
After connected, tap LED image on Android to test LED service.
Push SW0 button on embedded device to test button service.

See :ref:`bluetooth samples section <bluetooth-samples>` for details.

.. _ST BLE Sensor app:
    https://play.google.com/store/apps/details?id=com.st.bluems

.. _ST Nucleo WB55RG:
    https://www.st.com/en/microcontrollers-microprocessors/stm32wb55rg.html

.. _STM32CubeProgrammer:
    https://www.st.com/en/development-tools/stm32cubeprog.html

.. _BlueST protocol:
    https://www.st.com/resource/en/user_manual/dm00550659.pdf

.. _STM32WB github:
    https://github.com/STMicroelectronics/STM32CubeWB/tree/master/Projects/STM32WB_Copro_Wireless_Binaries