gatt_client.h (2acb28428d8d4f388efe8fbe9eacbbc8dcc04cd5) | gatt_client.h (58e8c9f5466ca2e36515d631514c9a587297aee3) |
---|---|
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 --- 938 unchanged lines hidden (view full) --- 947 * GATT_CLIENT_CHARACTERISTIC_NOTIFICATION_NOT_SUPPORTED if configuring notification, but characteristic has no notification property set 948 * GATT_CLIENT_CHARACTERISTIC_INDICATION_NOT_SUPPORTED if configuring indication, but characteristic has no indication property set 949 * ERROR_CODE_UNSUPPORTED_FEATURE_OR_PARAMETER_VALUE if configuration is invalid 950 * ERROR_CODE_SUCCESS if query is successfully registered 951 */ 952uint8_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); 953 954/** | 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 --- 938 unchanged lines hidden (view full) --- 947 * GATT_CLIENT_CHARACTERISTIC_NOTIFICATION_NOT_SUPPORTED if configuring notification, but characteristic has no notification property set 948 * GATT_CLIENT_CHARACTERISTIC_INDICATION_NOT_SUPPORTED if configuring indication, but characteristic has no indication property set 949 * ERROR_CODE_UNSUPPORTED_FEATURE_OR_PARAMETER_VALUE if configuration is invalid 950 * ERROR_CODE_SUCCESS if query is successfully registered 951 */ 952uint8_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); 953 954/** |
955 * @brief Register for changes to the Service Changed and Database Hash Characteristics of the remote GATT Service 956 * When configured, GATT_EVENT_QUERY_COMPLETE event is emitted 957 * If supported, the Database Hash is read as well 958 * 959 * @param callback 960 */ 961void gatt_client_add_service_changed_handler(btstack_packet_callback_registration_t * callback); 962 963/** 964 * @brief Remove callback for service changes 965 * @param callback 966 */ 967void gatt_client_remove_service_changed_handler(btstack_packet_callback_registration_t * callback); 968 969/** |
|
955 * @brief Register for notifications and indications of a characteristic enabled by 956 * the gatt_client_write_client_characteristic_configuration function. 957 * @param notification struct used to store registration 958 * @param callback 959 * @param con_handle or GATT_CLIENT_ANY_CONNECTION to receive updates from all connected devices 960 * @param characteristic or NULL to receive updates for all characteristics 961 */ 962void 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); --- 93 unchanged lines hidden --- | 970 * @brief Register for notifications and indications of a characteristic enabled by 971 * the gatt_client_write_client_characteristic_configuration function. 972 * @param notification struct used to store registration 973 * @param callback 974 * @param con_handle or GATT_CLIENT_ANY_CONNECTION to receive updates from all connected devices 975 * @param characteristic or NULL to receive updates for all characteristics 976 */ 977void 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); --- 93 unchanged lines hidden --- |