Turn off BLE temporary
Hey,
in my application it should be possible to turn bluetooth on and off again completely.
Turning advertising off, doesn't do the trick, because devices which have been paired before can still connect.
Turning off the APB3 clock for BLE in the RCC_C2APB3ENR register works kind of, but not always. It is a very strange behaviour, where one can still connect to the device, even though the BLE clock is turned off. The register is not changed by anything else in the meanwhile,
Reseting the radio frequency system with RCC_APB3RSTR turns is off completely, but won't allow a re-initialization.
Probably there is an easy way, I haven't found yet.
Every help and hint will be highly appreciated. Thanks!