L475E_IOT01
This project has been configured to work with TrueStudio 9.3. The project was initilaized with STM32CubeMx, but it is no longer compatible with future STM32CubeMx updates, so make any changes with care!
ST's Guide can be found here: Getting started with the X-CUBE-BLE1 Bluetooth Low Energy software expansion for STM32Cube
Initialize Hardware Abstraction Layer and serial interface:
- SPI serial initialization:
BNRG_SPI_Init();
or
HCI_Init()
BlueNRG_RST();
Initialize services and characterisitics:
aci_gap_init()
aci_gatt_add_serv()
Set security requirements:
aci_gap_set_auth_requirement()
Set discoverable mode:
aci_gap_set_discoverable()
gatt_db.c
: Sets up the services and includes the service UUIDs as definitions
ST's Guide can be found here: Getting started with the X-CUBE-MEMS1 motion MEMS and environmental sensor software expansion for STM32Cube