Hi, It's needed to stop the advertisement in my project. I try to stop it directly by using interface sd_ble_gap_adv_stop(), but an error indicating NRF_ERROR_INVALID_STATE occurs if the connection is established. So, I attempt to disconnect first by using interface sd_ble_gap_disconnect(). No matter what hci_status_code I pass, it occurs errors indicating NRF_ERROR_INVALID_STATE, NRF_ERROR_INVALID_PARAM, or others. I don't know what mistakes mess my way. Anyone any clues? Best regards!
Addition: I just want to make a faked sleep mode aiming at there is no advertisement and connection.