This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to stop a service then start another service?

Hi all, I want accive this situation. My peripheral connecting a central with a service for example hrs, then i stop the conect with the function sd_ble_gap_disconnect(m_conn_handle_peripheral, BLE_HCI_STATUS_CODE_SUCCESS). Then i want to stop the service and start a new service(bas for example), then i restart the new adveristing? How to remove a service then disconnect to a central then restart the new adv with a new service? Thanks~

Related