Commit graph

942 commits

Author SHA1 Message Date
Vincent Coubard
ca85939442 version v2.2.3 2015-12-23 11:12:35 +00:00
Vincent Coubard
a7d97ae5c4 Merge pull request #158 from LiyouZhou/hotfix_Gap_AddressType
Hotfix for backward compatibility
2015-12-23 10:39:40 +00:00
Liyou Zhou
b2dd219ff4 Fix issues 2015-12-22 13:56:14 +00:00
Liyou Zhou
ec7df38a77 Add deprecated message to Gap::connect overload function 2015-12-22 12:59:45 +00:00
Liyou Zhou
7398a396d7 Hotfix for backward compatibility
for change from Gap:AddressType_t to BLEProtocol::AddressType_t
2015-12-21 17:38:17 +00:00
Vincent Coubard
3036b058fe Merge pull request #153 from andresag01/update_adv_payload
Modify functions that manipulate adv payload
2015-12-21 15:04:59 +00:00
Andres Amaya Garcia
484382e2aa Fix comment in GapAdvertisingData 2015-12-21 10:44:55 +00:00
Andres Amaya Garcia
02ca65bc9f Make update adv payload replace previous data
Accumulate and update advertising payload now differ in their implementations.
Accumulate updates the previous value, if it is UUID then the previously added
values are kept and the new one is simple appended. In contrast, update
replaces the previous value in all cases.
2015-12-21 10:38:51 +00:00
Vincent Coubard
fa8068478e Merge pull request #154 from andresag01/clean_warnings
Clean up code in DiscoveredCharacteristic.cpp
2015-12-21 08:23:51 +00:00
Rohit Grover
bd2b3cd05b version v2.2.2 2015-12-21 08:10:30 +00:00
Rohit Grover
6d1dc39a44 Merge pull request #155 from andresag01/add_err_code
Add BLE_ERROR_INTERNAL_STACK_FAILURE error code
2015-12-21 08:06:30 +00:00
Andres Amaya Garcia
c64decef73 Add BLE_ERROR_INTERNAL_STACK_FAILURE error code
Add an additional error code to the ble_error_t enum to describe a failure
state caused by the internal platform-specific stack. This state was not
described by any of the existing error codes.
2015-12-18 17:22:35 +00:00
Andres Amaya Garcia
fec4e5ec53 Add documentation missing for updateData() 2015-12-18 16:27:18 +00:00
Andres Amaya Garcia
ae516d1aba Clean up code in DiscoveredCharacteristic.cpp
Clean up the code by removing white spaces and adding statements to supress
unused-parameter compiler warnings.
2015-12-18 16:17:28 +00:00
Andres Amaya Garcia
4fb7c06886 Rename updateFieldPayload to updateField 2015-12-18 14:02:44 +00:00
Andres Amaya Garcia
39e3e8d151 Modify functions that manipulate adv payload
Modify the functions addData() and updateData() to correctly update the payload
information for a specified AD type if that type was already present in the
payload. For addData() if the AD type is not found, it is added to the payload.
In contrast, in updateData() if the AD type is not found an error is returned.

Documentation was updated accordingly.
2015-12-18 13:53:51 +00:00
Rohit Grover
002c761381 version v2.2.1 2015-12-18 13:23:52 +00:00
Rohit Grover
1381ba46e7 Merge pull request #150 from andresag01/rm_appearance
Remove deprecated appearance enum from blecommon.h
2015-12-18 08:14:03 +00:00
Andres Amaya Garcia
e40dc0642c Fix comment in GapAdvertisingParams.h 2015-12-17 15:45:04 +00:00
Andres Amaya Garcia
7ce1b80b8c Removed deprecated appearance enum from blecommon.h 2015-12-17 15:42:29 +00:00
Rohit Grover
7ded8ae784 version v2.2.0 2015-12-17 08:52:14 +00:00
Vincent Coubard
31be7790b0 Merge pull request #146 from andresag01/develop
Add onShutdown to register callbacks
2015-12-17 08:43:12 +00:00
Andres Amaya Garcia
0024b78a39 Clear shutdown callchain after exec callbacks 2015-12-16 16:43:04 +00:00
Vincent Coubard
65ed5c13a8 Merge pull request #145 from rgrover/develop
transparenly support existing applications which may have used Gap::ADDR_TYPE_*
2015-12-16 09:46:17 +00:00
Andres Amaya Garcia
0781293bda Add onShutdown to register callbacks
Add an onShutdown() function to Gap, GattClient, GattServer and
SecurityManager. The callbacks are added to a private callback chain in each of
the instances. The callbacks will be executed inside each object's reset()
function BEFORE the state of the instance is cleared. The developers of the
platform-specific implementation must call the parent class' reset() function
for the callbacks to be executed.

Finally, an onShutdown() function that returns the shutdown callchain is added
to allow detaching callbacks.
2015-12-16 09:44:52 +00:00
Rohit Grover
3c15a7dfcc minor re-organization 2015-12-16 09:09:38 +00:00
Rohit Grover
f30fe6bcda use an anonymous enum instead 2015-12-16 09:07:57 +00:00
Rohit Grover
2f527dbb7e transparenly support existing applications which may have used Gap::ADDR_TYPE_*. 2015-12-16 08:54:09 +00:00
Rohit Grover
022c37ce31 white space diffs 2015-12-16 07:00:50 +00:00
Rohit Grover
8b513a7ba2 add an interdependency to "ble-nrf51822": "^2.2.8" 2015-12-16 06:51:35 +00:00
Rohit Grover
1e448f8757 Merge pull request #141 from andresag01/develop
Improve API to facilitate full shutdown procedure
2015-12-16 06:46:01 +00:00
Rohit Grover
b8fde92814 update dependency for ble-nrf51822 to have version >=2.2.6 2015-12-15 13:06:52 +00:00
Rohit Grover
87ab48899d version v2.1.15 2015-12-15 13:04:25 +00:00
Rohit Grover
95541a1663 Merge pull request #142 from rgrover/develop
Extract Adress related types from Gap.h into BLEProtocol.h
2015-12-15 12:59:45 +00:00
Rohit Grover
1cab4222d5 replace uses of GapAddress_t with BLEProtocol::Address_t 2015-12-15 11:59:41 +00:00
Rohit Grover
4774e2cd84 Add an alias for BLEProtocol::AddressType::Type 2015-12-15 08:50:47 +00:00
Rohit Grover
05c42ffc31 had meant to use namespace for BLEProtocol instead of struct 2015-12-14 17:08:07 +00:00
Rohit Grover
17d6e5fe80 Extract Adress related types from Gap.h into BLEProtocol.h 2015-12-14 16:59:21 +00:00
Andres Amaya Garcia
cd809e2a2c Modify shutdown API and functionality
Modify the shutdown API to remove the static shutdown function in Gap,
SecurityManager, GattClient and GattServer. Futhermore, remove the static
references to Gap, SecurityManager, GattClient and GattServer objects inside
their own classes. The cleanup method is renamed to `reset()` and made public.
Finally, additional functionality is added to the reset implementation in
Gap.
2015-12-14 15:34:38 +00:00
Andres Amaya Garcia
b817cf3e57 Improve API to facilitate full shutdown procedure
The BLE API exposes a shutdown() function in BLE.h. This function is meant to
be overwridden by platform-specific sub-classes to clear all GAP and GATT
state. However, from the platform-specific implementation it is dificult to
achieve this because the Gap, GattClient, GattServer and SecurityManager
components of the API do not expose any functionality to shutdown.

This commit introduces the following changes:

* Add a static member pointer to Gap, GattClient, GattServer and
SecurityManager that is used to keep track of the initialized objects.
* Add a function member cleanup() to Gap, GattClient, GattServer and
SecurityManager to allow easy reset of the instance's state. This function
is meant to be overriden and called from the derived classes to fully clear the
state of the BLE API and the platform-specific implementation.
* Add a static member function shutdown() to Gap, GattClient, GattServer and
SecurityManager. This function shall be called from the shutdown()
overriding BLE::shutdown() for Gap, GattClient, GattServer and SecurityManager
that will in-turn clear the state of each of the components.

**NOTE:** Platform-specific implementations of this API must be modified to
this changes into account.
2015-12-11 18:14:14 +00:00
Rohit Grover
e513c189ec version v2.1.14 2015-12-11 09:38:20 +00:00
Rohit Grover
4274817f7d changing dependency for nucleo-idb0xa1 to use versioning 2015-12-11 09:38:12 +00:00
Rohit Grover
6c13ded25b version v2.1.13 2015-12-11 09:29:34 +00:00
Rohit Grover
21447dcf8a version v2.1.12 2015-12-11 09:27:59 +00:00
Rohit Grover
5eca22cd68 Merge pull request #140 from marcuschangarm/bond
Added SecurityManager::setLinkSecurity call for elevating security settings on a particular connection.
2015-12-11 09:13:43 +00:00
Marcus Chang
372e20367c Added SecurityManager::setLinkSecurity call for elevating security settings on a particular connection. 2015-12-10 15:02:05 +00:00
Rohit Grover
f3dd147b2b Release 2.1.11
==============

* Added byte ordering parameter to UUID construction for long UUIDs. The
  default remains as Big-Endian.

* Add a doxyfile that warns for undocumented elements.

* Minor fixes for some documentation.
2015-12-10 09:11:25 +00:00
Rohit Grover
12d317cc9f version v2.1.10 2015-12-07 15:45:06 +00:00
Rohit Grover
e8cf2c3999 Merge branch 'marcuschangarm-endian' into develop 2015-12-07 15:44:52 +00:00
Rohit Grover
694130ff18 use std::reverse_copy to switch byte-order 2015-12-07 15:44:28 +00:00