added AdaCallback implemetation

This commit is contained in:
hathach committed 2017-04-03 22:58:35 +07:00
1 parent d955303a78
commit a770b995c3
7 files changed
+165 -51

No files matched your search

+5 -1
View File
@@ -35,6 +35,7 @@
/**************************************************************************/
#include "bluefruit.h"
#include "AdaCallback.h"
/**
* Constructor
@@ -242,7 +243,10 @@ void BLECentral::_event_handler(ble_evt_t* evt)
// TODO multiple connections
_conn_hdl = evt->evt.gap_evt.conn_handle;
if ( _connect_cb ) _connect_cb(evt->evt.gap_evt.conn_handle);
if ( _connect_cb )
{
ada_callback(NULL, _connect_cb, evt->evt.gap_evt.conn_handle);
}
}
}
break;