Commit graph

184 commits

Author SHA1 Message Date
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 694130ff18 use std::reverse_copy to switch byte-order 2015-12-07 15:44:28 +00:00
Rohit Grover 9ba091134d rename UUID::BitOrder_t to ByteOrder 2015-12-07 15:36:46 +00:00
Rohit Grover 9c648dc3c6 add comment header for UUID::char2int 2015-12-07 15:30:35 +00:00
Rohit Grover aac3181548 Merge branch 'endian' of https://github.com/marcuschangarm/ble into marcuschangarm-endian 2015-12-07 15:26:04 +00:00
Marcus Chang 01eaeeeea2 Added bit ordering parameter to UUID construction. 2015-12-07 13:43:44 +00:00
Rohit Grover ce4551ba6b remove an incorrect comment block 2015-12-04 13:14:01 +00:00
Andres Amaya Garcia d9faf10036 Fix documentation for getMinAdvertisingInterval and getMinNonConnectableAdvertisingInterval 2015-12-04 10:14:48 +00:00
Irit Arkin e31ca45a34 I change the service description
It looked like it was the thermometer's description.
2015-12-03 11:34:35 +00:00
Rohit Grover 9d3cd74b41 Merge pull request #129 from iriark01/patch-10
Edit
2015-12-03 08:42:00 +00:00
Irit Arkin 2d708e9462 Edit 2015-12-02 17:08:13 +00:00
Irit Arkin b9af3222e9 Edit 2015-12-02 16:39:58 +00:00
Marcus Chang ea69dba564 Reversed internal representation of long UUID in the UUID class to little endian to be consistent with the short UUID. 2015-12-02 15:37:44 +00:00
Andres Amaya Garcia 46b05925f9 Make some subclasses of GattChar variable size
The following subclasses of GattCharacteristic are modified to have variable
size:

* WriteOnlyGattCharacteristic
* ReadWriteGattCharacteristic
* WriteOnlyArrayGattCharacteristic
* ReadWriteArrayGattCharacteristic
2015-12-02 11:26:09 +00:00
Andres Amaya Garcia 3108e0e54c Make subclasses of GattCharacteristic fixed len
The following subclasses of GattCharacteristic now have fixed length by passing
false as the last parameter to the GattCharacteristic constructore:

* ReadOnlyGattCharacteristic
* WriteOnlyGattCharacteristic
* ReadWriteGattCharacteristic
* WriteOnlyArrayGattCharacteristic
* ReadOnlyArrayGattCharacteristic
* ReadWriteArrayGattCharacteristic
2015-12-02 11:26:09 +00:00
Andres Amaya Garcia 87aeff3474 Allow GattAttributes to have fixed length
Previously the concepts of initLength and lenth were clearly separated.
However, this was at the cost of registering all characteristics in the
SoftDevice as having variable length. Clearly, this is not the desired
behaviour. Therefore, an additional field '_hasVariableLen' is added to the
GattAttribute to address the problem. Also, the GattAttribute and
GattCharacteristic constructors have been modified to take a boolean that
sets '_hasVariableLen'.
2015-12-02 11:26:09 +00:00
Rohit Grover c4bc3fa2bc fix a typo. onConnection had got renamed incorrectly with recent chagnes. 2015-12-02 10:49:19 +00:00
Rohit Grover 4cbf096268 Merge pull request #114 from iriark01/patch-5
Minor edits
2015-12-02 08:03:30 +00:00
Rohit Grover a2c6455c08 Merge pull request #123 from iriark01/patch-6
Edit
2015-12-02 08:02:50 +00:00
Rohit Grover 67ad1a2a99 Merge pull request #124 from iriark01/patch-7
Edit
2015-12-02 08:02:36 +00:00
Rohit Grover 23690e78e1 Merge pull request #125 from iriark01/patch-8
Edit
2015-12-02 08:01:59 +00:00
Irit Arkin 467eb2e902 Edit 2015-12-01 17:51:17 +00:00
Irit Arkin 1af35b6413 Edit 2015-12-01 17:31:21 +00:00
Irit Arkin ec20b5e302 Edit 2015-12-01 17:26:28 +00:00
Irit Arkin acda4fd2f5 Edit
This is very light; is there more information you can add?
2015-12-01 15:01:19 +00:00
Andres Amaya Garcia db1ff945de Separate the concept of minlen and len in GattChar
In previous versions of BLE_API the GattCharacteristic initLen parameter is
named minLen as well. When the characteristic is committed to the SoftDevice
the value of initial length is also used as the minimum length of the
characteristic value. Furthermore, the test (max_length == min_length) is used
to determine whether the characteristic value has variable length. This is
slightly confusing and also causes problems if the user wishes to use a
characteristic with variable length but the initial lenght is equal to max
length.

To solve this problem the characteristic is now always committed to the
SoftDevice as variable. Furthermore, the API only maintains the current lenght
and the max length i.e. the field initialLen in the GattAttribute is removed.
Finally, the constructor for the GattCharacteristic was modified to reflect
these changes.

*NOTES:*
* This change requires updates to ble-nrf51822.
* Ideally we would like the characteristics to be declared as 'variable' only
when necessary, but this requires changing the signature of the
GattCharacteristic and GattAttribute constructures. Therefore, it will be part
of a separate pull request.
2015-11-27 17:17:56 +00:00
Rohit Grover f8ab6daf70 Merge pull request #119 from LiyouZhou/guard_dfu_files
Guard nordic specific implementation with #ifdef TARGET_NRF51822
2015-11-26 14:42:42 +00:00
Liyou Zhou ce62be1ea5 Change position of ifdef 2015-11-26 14:24:38 +00:00
Liyou Zhou 2a58ee974c Merge branch 'guard_dfu_files' of github.com:LiyouZhou/ble into guard_dfu_files 2015-11-26 14:22:47 +00:00
Liyou Zhou f2a0a2f09e Guard nordic specific implementation with #ifdef TARGET_NRF51822 2015-11-26 14:22:15 +00:00
Liyou Zhou 9b159ddaa4 Guard nordic specific implementation with #ifdef TARGET_NRF51822 2015-11-26 13:54:20 +00:00
Rohit Grover ffd18cb519 Merge pull request #118 from LiyouZhou/develop
Call bootloader_start implicitly trough a event handler call
2015-11-26 11:10:10 +00:00
Rohit Grover 15d09959b2 Merge pull request #117 from andresag01/develop
Reintroduce old Eddystone with deprecated warnings
2015-11-26 10:47:43 +00:00
Rohit Grover 6adaa03ed7 Merge branch 'doxygen' of https://github.com/metc/ble into metc-doxygen 2015-11-26 10:04:53 +00:00
Andres Amaya Garcia 5c86cb0ad4 Reintroduce old Eddystone with deprecated warnings
For compatibility reasons in mbed classic, the old Eddystone implementation
under ble/services (i.e. EddystoneConfigService.h and EddystoneService.h) is
reintroduced. However, attempting to use this files with generate a deprecation
warning at compile time with the URL of the ble-example/BLE_EddystoneService.
2015-11-26 09:54:53 +00:00
Rohit Grover 7de3434278 Merge pull request #109 from pan-/removePersistantCallbacks
Remove persistant callbacks
2015-11-26 09:44:12 +00:00
Christopher Métrailler ac23dca9ec Change comments format to remove Doxygen modules. 2015-11-25 21:04:49 +01:00
Liyou Zhou 183a572f4f Styling changes. 2015-11-25 18:48:25 +00:00
Irit Arkin 4d446511f9 Minor edits 2015-11-25 12:57:24 +00:00
Vincent Coubard 184d29c35b Various enhancement:
Add SafeBool class which allow to easily declare a safe bool operator in
c++03.

CallChainOfFunctionPointerswithContext:
  - unify syntax of add
  - detach function now return true if a function has been detached and
    false otherwise
  - Explanations about function call operator
  - use safe bool idiom
  - explanations about iterator and why it is mutable

FunctionPointerWithContext:
  - fix call propagation
  - use safe bool idiom

Gap:
  - add documentation
  - onRadioNotification does mot call initRadioNotification anymore

GattClient:
  - documentation

GattServer:
  - documentation
2015-11-25 11:27:33 +00:00
Liyou Zhou 2c0747f051 Merge branch 'develop' of github.com:LiyouZhou/ble into develop
Conflicts:
	ble/services/DFUService.h
2015-11-25 10:43:04 +00:00
Rohit Grover 66023731f4 Merge branch 'patch-2' of https://github.com/iriark01/ble into iriark01-patch-2 2015-11-25 08:46:41 +00:00
Rohit Grover ebee81fa68 Merge branch 'patch-3' of https://github.com/iriark01/ble into iriark01-patch-3 2015-11-25 08:44:38 +00:00
Rohit Grover c99c3a45cb Merge branch 'patch-4' of https://github.com/iriark01/ble into iriark01-patch-4 2015-11-25 08:33:44 +00:00
Liyou Zhou 2bcad22d08 Call bootloader_start implicitly trough a event handler call
work around for bootloader_start not being public in sdk 8.1
2015-11-24 18:33:25 +00:00
Liyou Zhou e45e9dfec9 Call bootloader_start implicitly trough a event handler call
work around for bootloader_start not being public in sdk 8.1
2015-11-24 18:31:42 +00:00
Irit Arkin 700850d1a8 Minor edits 2015-11-24 14:27:37 +00:00
Irit Arkin 561358bda2 Minor edits 2015-11-24 13:46:06 +00:00
Marcus Chang fea34e7747 Updated GapAdvertisementData.h to handle insertion and appending of data fields. Made appendField private. 2015-11-24 11:16:58 +00:00
Irit Arkin 566ad1ffb0 Minor edits 2015-11-23 14:41:52 +00:00