在STSW-STLKT01
https://my.st.com/content/my_st_com/en/products/embedded-software/evaluation-tool-software/stsw-stlkt01.html
最新版的V1.2.0的 release note 文档说明中找到了这个
BLE_SampleApp Application
BLE_SampleApp provides an example of Bluetooth Low Energy configuration that enables SensorTile to stream environmental sensors data; it is compatible with ST BlueMS app available for both Android and iOS.
After reset the firmware performs the following actions:
Configure HAL and clocks
Configure and disable sensors Chip Select pins
Initilize the target platform:
USB peripheral (for debugging)
LED1
Environmental sensors
Initialize Bluetooth Low Energy stack
Initialize Bluetooth Low Energy services
Initialize timers
Main Loop:
Led management
BLE events management
Environmental sensors data mangement
从这个文档说明中,可以看到这个BLE_SampleApp工程主要是为了快速给开发者展示SensorTile BLE连接的基本功能,这些功能不需要考虑运动传感器的数据传输,而只是LED控制/环境传感器数据,使得数据包结构相对来说简单。