Skip to content

An application example of a BLE Client for the BLE_HeartRate project from STM32CubeWB.

License

Notifications You must be signed in to change notification settings

stm32-hotspot/STM32WB55_BLE_HeartRate_Client

Repository files navigation

STM32WB55_BLE_HeartRate_Client

  • The STM32WB55_BLE_HeartRate_Client is based on the BLE_P2PClient application from STM32CubeWB V1.21.0.
  • This application is an example of a BLE Client for the BLE_HeartRate project from STM32CubeWB.
  • This project has the following button functionality:
    • SW1 (Disconnected) : Start BLE scanning and automatic connection.
    • SW1 (Connected) : Send a BLE write to the Heart Rate Control Point characteristic.
    • SW2 (Disconnected) : No functionality.
    • SW2 (Connected) : Send a BLE read request to the Body Sensor Location characteristic.
    • SW3 (Disconnected) : No functionality.
    • SW3 (Connected) : Toggle the Heart Rate Measurement characteristic notifications.
  • Check the BLE_HeartRate WIKI page for information on the server application from STM32CubeWB.

Hardware Needed

Software Needed

User's Guide

  1. Flash the NUCLEO-WB55 with the application using one of the following methods:

    a) Flash the prebuilt firmware image with STM32CubeProgrammer.

    RM_IMAGE_0

    b) Build and debug the application with an IDE.

    RM_IMAGE_1

  2. View the debug log output using Tera Term, you may need to press the reset button to view the inital logs (optional).

    a) Left: BLE Heart Rate Client

    b) Right: BLE Heart Rate Server

    Note: CFG_LPM_SUPPORTED, CFG_DEBUG_BLE_TRACE, & CFG_DEBUG_APP_TRACE in app_conf.h will need to be modified to see the logs for the BLE_HeartRate example.

RM_IMAGE_2

  1. Press SW1 on the STM32WB55_BLE_HeartRate_Client device to start scanning and automatic connection.

RM_IMAGE_3

  1. The STM32WB55_BLE_HeartRate_Client will perform service, characteristic, and descriptor discovery upon connection.

RM_IMAGE_4

  1. The Heart Rate Measurement notifications will be enabled upon connection as well.

RM_IMAGE_5

  1. Press SW3 on the STM32WB55_BLE_HeartRate_Client device to toggle the Heart Rate Measurement notifications.

RM_IMAGE_6

  1. Press SW1 on the STM32WB55_BLE_HeartRate_Client device to send a BLE write to the Heart Rate Control Point characteristic.

RM_IMAGE_7

  1. Press SW2 on the STM32WB55_BLE_HeartRate_Client device to send a BLE read request to the Body Sensor Location characteristic.

RM_IMAGE_8

Troubleshooting

Caution : Issues and the pull-requests are not supported to submit problems or suggestions related to the software delivered in this repository. The STM32WB55_BLE_HeartRate_Client example is being delivered as-is, and not necessarily supported by ST.

For any other question related to the product, the hardware performance or characteristics, the tools, the environment, you can submit it to the ST Community on the STM32 MCUs related page.

About

An application example of a BLE Client for the BLE_HeartRate project from STM32CubeWB.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published