Devchannel Team / X_NUCLEO_IDB0XA1

Dependents:   Hello_BLE F446RE-BLE

Fork of X_NUCLEO_IDB0XA1 by ST

Revision:
55:0e4db6804c8d
Parent:
54:bae48224c2f9
Child:
56:20e83a284019
--- a/btle/src/btle.cpp	Wed Oct 01 05:39:59 2014 +0000
+++ b/btle/src/btle.cpp	Wed Oct 01 08:49:52 2014 +0000
@@ -182,7 +182,7 @@
             {
               evt_disconn_complete *evt = (evt_disconn_complete*)event_pckt;
               
-              BlueNRGGap::getInstance().processHandleSpecificEvent(GapEvents::GAP_EVENT_DISCONNECTED, evt->handle);
+              BlueNRGGap::getInstance().processDisconnectionEvent(evt->handle, BlueNRGGap::REMOTE_USER_TERMINATED_CONNECTION);
             }
             break;
         
@@ -196,7 +196,9 @@
                             evt_le_connection_complete *cc = (evt_le_connection_complete *)evt->data;
                             
                             BlueNRGGap::getInstance().setConnectionHandle(cc->handle);
-                            BlueNRGGap::getInstance().processHandleSpecificEvent(GapEvents::GAP_EVENT_CONNECTED, cc->handle);                            
+                            BlueNRGGap::ConnectionParams_t connectionParams;
+                            BlueNRGGap::getInstance().getPreferredConnectionParams(&connectionParams);                                                
+                            BlueNRGGap::getInstance().processConnectionEvent(cc->handle, (const BlueNRGGap::ConnectionParams_t *)&connectionParams);                            
                         }
                         break;
                     }