Michael Galis / nRF51822

Fork of nRF51822 by Nordic Semiconductor

Committer:
rgrover1
Date:
Tue Jul 21 13:23:43 2015 +0100
Revision:
386:3253b512fb24
Parent:
source/nordic-sdk/components/libraries/util/sdk_common.h@381:c997e9717fb7
Synchronized with git rev 928a5e63
Author: Rohit Grover
Release 0.4.1
=============

This is a minor release.

Enhancements
~~~~~~~~~~~~

* Hide duplicate symbol definitions in ble_types.h. These have already been
brought into ble/blecommon.h.

* Replace DiscoveredCharacteristic::setupOnDataRead() with
GattClient::onDataRead().

* Implement new API GattServer::areUpdatesEnabled() to determine notification
status for a characteristic.

Bugfixes
~~~~~~~~

* fix for #20: GattServer::addService() incorrectly initialized value
attribute-handles. These were getting confused with characteristicIndex.
Event handlers also return attribute handles correctly now; they were also
previously returning characteristic indices.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
rgrover1 371:8f7d2137727a 1 /*
rgrover1 371:8f7d2137727a 2 * Copyright (c) Nordic Semiconductor ASA
rgrover1 371:8f7d2137727a 3 * All rights reserved.
rgrover1 371:8f7d2137727a 4 *
rgrover1 371:8f7d2137727a 5 * Redistribution and use in source and binary forms, with or without modification,
rgrover1 371:8f7d2137727a 6 * are permitted provided that the following conditions are met:
rgrover1 371:8f7d2137727a 7 *
rgrover1 371:8f7d2137727a 8 * 1. Redistributions of source code must retain the above copyright notice, this
rgrover1 371:8f7d2137727a 9 * list of conditions and the following disclaimer.
rgrover1 371:8f7d2137727a 10 *
rgrover1 371:8f7d2137727a 11 * 2. Redistributions in binary form must reproduce the above copyright notice, this
rgrover1 371:8f7d2137727a 12 * list of conditions and the following disclaimer in the documentation and/or
rgrover1 371:8f7d2137727a 13 * other materials provided with the distribution.
rgrover1 371:8f7d2137727a 14 *
rgrover1 371:8f7d2137727a 15 * 3. Neither the name of Nordic Semiconductor ASA nor the names of other
rgrover1 371:8f7d2137727a 16 * contributors to this software may be used to endorse or promote products
rgrover1 371:8f7d2137727a 17 * derived from this software without specific prior written permission.
rgrover1 371:8f7d2137727a 18 *
rgrover1 371:8f7d2137727a 19 *
rgrover1 371:8f7d2137727a 20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
rgrover1 371:8f7d2137727a 21 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
rgrover1 371:8f7d2137727a 22 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
rgrover1 371:8f7d2137727a 23 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
rgrover1 371:8f7d2137727a 24 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
rgrover1 371:8f7d2137727a 25 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
rgrover1 371:8f7d2137727a 26 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
rgrover1 371:8f7d2137727a 27 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
rgrover1 371:8f7d2137727a 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
rgrover1 371:8f7d2137727a 29 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
rgrover1 371:8f7d2137727a 30 *
rgrover1 371:8f7d2137727a 31 */
rgrover1 371:8f7d2137727a 32
rgrover1 371:8f7d2137727a 33 /** @cond */
rgrover1 371:8f7d2137727a 34 /**@file
rgrover1 371:8f7d2137727a 35 *
rgrover1 371:8f7d2137727a 36 * @ingroup experimental_api
rgrover1 371:8f7d2137727a 37 * @defgroup sdk_common SDK Common Header
rgrover1 371:8f7d2137727a 38 * @breif All common headers needed for SDK examples will be included here so that application
rgrover1 371:8f7d2137727a 39 * developer does not have to include headers on him/herself.
rgrover1 371:8f7d2137727a 40 * @{
rgrover1 371:8f7d2137727a 41 */
rgrover1 371:8f7d2137727a 42
rgrover1 371:8f7d2137727a 43 #ifndef SDK_COMMON_H__
rgrover1 371:8f7d2137727a 44 #define SDK_COMMON_H__
rgrover1 371:8f7d2137727a 45
rgrover1 371:8f7d2137727a 46 #include <stdint.h>
rgrover1 371:8f7d2137727a 47 #include <stdbool.h>
rgrover1 371:8f7d2137727a 48 #include <string.h>
rgrover1 371:8f7d2137727a 49 #include "nordic_common.h"
rgrover1 371:8f7d2137727a 50 #include "compiler_abstraction.h"
rgrover1 371:8f7d2137727a 51 #include "sdk_os.h"
rgrover1 371:8f7d2137727a 52 #include "sdk_errors.h"
rgrover1 371:8f7d2137727a 53 #include "app_util.h"
rgrover1 371:8f7d2137727a 54
rgrover1 371:8f7d2137727a 55 /** @} */
rgrover1 371:8f7d2137727a 56 /** @endcond */
rgrover1 371:8f7d2137727a 57 #endif // SDK_COMMON_H__