ESP32 how i can check that radio module is work

I'm sorry to trouble you, but i have a question about BLE.

I use ESP32 - WROOM - 32D, Ardiuno IDE ver. 1.8.16 and Espressif System ver. 2.0.1. I'm a beginner in this and looking through a BLE libraries for esp32 i could not find how i can check state BLE server and state advertise in real time.
I have problem with my BLEServer, he can send advertising 1 week or 20 min and this is random. Advertise is stoped but 0 and 1 cores is worked.
Please tell me how i can chek if radio BLE and advertise is work at the moment in my sketch and send this state in Serial. I want to reload the esp32 if i can return a value that advertising has stopped

I will be grateful for any answer

I found. topic can be closed