restart advertising after disconnection

This commit is contained in:
Gordon Williams 2016-01-14 11:56:52 +00:00
parent 65754a0f66
commit f78194fe6b

View File

@ -261,6 +261,8 @@ static void on_ble_evt(ble_evt_t * p_ble_evt) {
case BLE_GAP_EVT_DISCONNECTED:
m_conn_handle = BLE_CONN_HANDLE_INVALID;
jsiSetConsoleDevice( DEFAULT_CONSOLE_DEVICE );
// restart advertising after disconnection
jswrap_nrf_bluetooth_startAdvertise();
break;
case BLE_GAP_EVT_SEC_PARAMS_REQUEST: