https://deepbluembedded.com/stm32-hc-05-bluetooth-module-examples/
STM32 HC-05 Bluetooth Interfacing HAL Examples - Master & Slave Pairing AT Commands