Please Help me this function doesn't fire from the periperical?

Please explain more.
Do you have ArduinoBLE.h on your computer? It is available through the library manager.
The LED library example can be found in the ide with File>Examples>ArduinoBLE>Peripheral>LED

Do you have nRFConnect on your phone?