gatt_client.c (1a4874dc541288a739d69450df4a135266f5af11) | gatt_client.c (fd01917f988344792e8d4568331a9a7514dd1e6e) |
---|---|
1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 1346 unchanged lines hidden (view full) --- 1355 uint16_t connection_id){ 1356 notification->callback = callback; 1357 notification->con_handle = con_handle; 1358 notification->start_group_handle = service->start_group_handle; 1359 notification->end_group_handle = service->end_group_handle; 1360 notification->service_id = 0; 1361 notification->connection_id = 0; 1362 btstack_linked_list_add(&gatt_client_value_listeners, (btstack_linked_item_t*) notification); | 1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 1346 unchanged lines hidden (view full) --- 1355 uint16_t connection_id){ 1356 notification->callback = callback; 1357 notification->con_handle = con_handle; 1358 notification->start_group_handle = service->start_group_handle; 1359 notification->end_group_handle = service->end_group_handle; 1360 notification->service_id = 0; 1361 notification->connection_id = 0; 1362 btstack_linked_list_add(&gatt_client_value_listeners, (btstack_linked_item_t*) notification); |
1363}; | 1363} |
1364 1365/** 1366 * @brief Stop listening to characteristic value updates for registered service with 1367 * the gatt_client_listen_for_characteristic_value_updates function. 1368 * @param notification struct used in gatt_client_listen_for_characteristic_value_updates 1369 */ 1370void gatt_client_stop_listening_for_service_characteristic_value_updates(gatt_client_service_notification_t * notification){ 1371 btstack_linked_list_remove(&gatt_client_service_value_listeners, (btstack_linked_item_t*) notification); --- 2523 unchanged lines hidden --- | 1364 1365/** 1366 * @brief Stop listening to characteristic value updates for registered service with 1367 * the gatt_client_listen_for_characteristic_value_updates function. 1368 * @param notification struct used in gatt_client_listen_for_characteristic_value_updates 1369 */ 1370void gatt_client_stop_listening_for_service_characteristic_value_updates(gatt_client_service_notification_t * notification){ 1371 btstack_linked_list_remove(&gatt_client_service_value_listeners, (btstack_linked_item_t*) notification); --- 2523 unchanged lines hidden --- |