Stop advertising due to SCH_SetTask()
Hello everyone,
I am working on a project on which i would like to send a notification from a board to another when the firts one crosses a threshold with the built-in comparator.
I started from the BLE_p2pServer and BLE_p2pClient examples from STM32Cube_FW_WB_V1.0.0 and modified them a bit to fit my needs. Everything was going well until I tried to send a BLE notification from the HAL_COMP_TriggerCallback() in the server.
I tried to send the notification with the functions in the server example and then wrote my own functions by drawing my inspiration from the ones in the server example but I had the same problem : the server stopped advertising.
I did some researches and found that SCH_SetTask() is responsible, when I comment its line, the server advertises.
Do you have any idea on how to solve this problem or just send a simple notification from the server to the client ?
Thank you.
