mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-04 06:39:53 +00:00
initialize gatt_client in daemon
This commit is contained in:
parent
e97722776d
commit
c8eade752e
@ -1056,6 +1056,7 @@ static void * run_loop_thread(void *context){
|
|||||||
#ifdef HAVE_BLE
|
#ifdef HAVE_BLE
|
||||||
|
|
||||||
static void handle_gatt_client_event(le_event_t * le_event){
|
static void handle_gatt_client_event(le_event_t * le_event){
|
||||||
|
|
||||||
switch(le_event->type){
|
switch(le_event->type){
|
||||||
|
|
||||||
case GATT_SERVICE_QUERY_RESULT:
|
case GATT_SERVICE_QUERY_RESULT:
|
||||||
@ -1253,6 +1254,7 @@ int main (int argc, char * const * argv){
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_BLE
|
#ifdef HAVE_BLE
|
||||||
|
gatt_client_init();
|
||||||
gatt_client_register_handler(&handle_gatt_client_event);
|
gatt_client_register_handler(&handle_gatt_client_event);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user