In my application, I execute below code to start advertise when a button is pressed
err_code = ble_advertising_start(BLE_ADV_MODE_FAST);
APP_ERROR_CHECK(err_code);
When I press the button for more than once, the system reset. It seems that when I execute above code when the advertising has already started, the system will reset. Can you tell me how to solve it. One of the possible ways is to check the advertise status, if it has already started, above code will not executed. Please tell me how to check the advertise is started or not. Please also advise other methods if you have.