gatt_client.h (6b04f675955f8e18028a1e4008c372730b6350e6) | gatt_client.h (b3f03c843f6a029757848cf4db52890477de181b) |
---|---|
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 --- 677 unchanged lines hidden (view full) --- 686 * ERROR_CODE_SUCCESS if query is successfully registered 687 */ 688uint8_t gatt_client_write_client_characteristic_configuration(btstack_packet_handler_t callback, hci_con_handle_t con_handle, gatt_client_characteristic_t * characteristic, uint16_t configuration); 689 690/** 691 * @brief Register for notifications and indications of a characteristic enabled by gatt_client_write_client_characteristic_configuration 692 * @param notification struct used to store registration 693 * @param callback | 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 --- 677 unchanged lines hidden (view full) --- 686 * ERROR_CODE_SUCCESS if query is successfully registered 687 */ 688uint8_t gatt_client_write_client_characteristic_configuration(btstack_packet_handler_t callback, hci_con_handle_t con_handle, gatt_client_characteristic_t * characteristic, uint16_t configuration); 689 690/** 691 * @brief Register for notifications and indications of a characteristic enabled by gatt_client_write_client_characteristic_configuration 692 * @param notification struct used to store registration 693 * @param callback |
694 * @param con_handle 695 * @param characteristic | 694 * @param con_handle or GATT_CLIENT_ANY_CONNECTION to receive updates from all connected devices 695 * @param characteristic or NULL to receive updates for all characteristics |
696 */ 697void gatt_client_listen_for_characteristic_value_updates(gatt_client_notification_t * notification, btstack_packet_handler_t callback, hci_con_handle_t con_handle, gatt_client_characteristic_t * characteristic); 698 699/** 700 * @brief Stop listening to characteristic value updates registered with gatt_client_listen_for_characteristic_value_updates 701 * @param notification struct used in gatt_client_listen_for_characteristic_value_updates 702 */ 703void gatt_client_stop_listening_for_characteristic_value_updates(gatt_client_notification_t * notification); --- 47 unchanged lines hidden --- | 696 */ 697void gatt_client_listen_for_characteristic_value_updates(gatt_client_notification_t * notification, btstack_packet_handler_t callback, hci_con_handle_t con_handle, gatt_client_characteristic_t * characteristic); 698 699/** 700 * @brief Stop listening to characteristic value updates registered with gatt_client_listen_for_characteristic_value_updates 701 * @param notification struct used in gatt_client_listen_for_characteristic_value_updates 702 */ 703void gatt_client_stop_listening_for_characteristic_value_updates(gatt_client_notification_t * notification); --- 47 unchanged lines hidden --- |