Problem with advertising when using HAL_Delay in main funcion.
Hello! I am trying to control a set of leds through bluetooth. In the main function ,after the main task I call the function that manage the leds and into this function there is HAL_Delay that has to receive its argument from bluetooth. The problem starts when I try to find the board using ST BLE Sensor app :
1) It takes a remarkable time to appear on the devices' list. When I connect successfuly to board then appear the second issue:
2) when I send the data (write characteristic) it also delays. How could I solve these delays?