Commit Graph

997 Commits

Author SHA1 Message Date
xcrespo 13a9c192d7 New call to onDisconnection callback in LinkLossService 2015-10-05 10:38:08 +02:00
xcrespo da2b104e16 Added license header for EnvironmentalService 2015-10-05 10:38:08 +02:00
Xabi Crespo f0f42d110b Support for Environmental Service (temperature, pressure and humidity characteristics) 2015-10-05 10:38:08 +02:00
Rohit Grover d43b1d1a8b update LinkLoss service due to recent changes in APIs 2015-09-29 12:58:14 +01:00
Rohit Grover 8694f1ade2 Merge branch 'develop' 2015-09-29 09:38:51 +01:00
Rohit Grover 91239f6b7c Release 0.4.8
=============

* Introduce an Instance() class method to BLE to allow access to the BLE
  singleton(s) using instanceID. Calling BLE::Instance() is preferable to
  constructing a BLE object directly because Instance() returns references to
  internally created singletons.

* We've added an initial prototype for a yotta-config based initialization for BLE transports.

  It is conceivable to have multiple BLE transports available to a system
  concurrently in which case Instance() can be passed an instanceID.
  There's also a BLE::NUM_INSTANCES--instanceID passed to Instance() should be
  less than NUM_INSTANCES for the returned BLE singleton to be useful.

  The config system now allows the target to specify multiple BLE instances.
  BLE::Instance() and BLE constructor rely upon a static array of initializers
  to create actual BLE transport instances. A description of these instances
  and initializers is supposed to be put in some .json file contributing to
  yotta's configuration (typically the target.json). Here's a sample:

  "config": {
    ...
    "ble_instances": {
      "count": 1,
      "0" : {
        "initializer" : "createBLEInstance"
      }
    }
  }

  Refer to http://yottadocs.mbed.com/reference/config.html.
  Note: The configuration system is currently experimental. Some of the
  behaviour described below may change in backwards-incompatible ways with
  minor updates to yotta.

  The use of this feature is optional. Initialization would continue to work
  like before as long as there is a default createBLEInstance() method
  available.

* We've updated our support for Google's Eddystone beacon by adding the EddystoneConfigService.

* Added onConnection() and onDisconnection() now append to a callback chain internally.
  Please note that this has also changed the callbackType for onDisconnection; resulting in a minor breaking change for API.
  All previous programs using onDisconnection() would need to adapt.

* Handle the case of a NULL transport pointer for BLE.

* We now disallow copy constructor and assignment operator for BLE.
2015-09-29 09:37:40 +01:00
Rohit Grover 7d5415ada2 Merge work for Eddystone Config Service into develop 2015-09-29 08:42:23 +01:00
Rohit Grover 5aa7895578 mostly white-sapce improvements 2015-09-29 08:41:18 +01:00
Austin Blackstone d389c42692 patch to ensure corred UUID being broadcast during Config. 2015-09-28 13:56:41 -05:00
Austin Blackstone 1811f21091 updated eddystone service and added config service. 2015-09-25 16:17:14 -05:00
Rohit Grover 7bbdbd0985 Merge pull request #72 from marcuschangarm/develop
Changed onConnection and onDisconnection to accept object/methods and…
2015-09-21 13:23:17 +01:00
Marcus Chang dd032631d7 Changed onConnection and onDisconnection to accept object/methods and merged them with the addTo-callchain. All calls to onConnection and onDisconnection will now be added to a call chain. 2015-09-17 11:38:14 +01:00
Rohit Grover 2c421951cb minor improvement to a comment header. 2015-09-08 10:35:13 +01:00
Rohit Grover c6dcbfc670 allow createBLEInstance to be overridable. 2015-09-08 10:33:57 +01:00
Rohit Grover 63f54814bd Merge pull request #71 from rgrover/develop
adding an initial prototype for a yotta-config based initialization f…
2015-09-08 10:19:52 +01:00
Rohit Grover cc3db8500c minor improvement to comment header for GattServer::onDataRead() 2015-09-08 10:11:39 +01:00
Rohit Grover 984266ee8a oops. typo. 2015-09-07 15:24:28 +01:00
Rohit Grover ce4821076f handle the case of a NULL transport pointer for BLE. 2015-09-07 14:55:02 +01:00
Rohit Grover ad8e92acd5 adding an initial prototype for a yotta-config based initialization for BLE transports 2015-09-07 14:55:02 +01:00
Rohit Grover a462757a6c disallow copy constructor and assignment operators for BLE. 2015-09-07 14:10:35 +01:00
Rohit Grover 4c2aac540d Merge branch 'master' into develop 2015-09-07 14:08:48 +01:00
Rohit Grover 715d0746bb adding LICENSE at the top level 2015-09-03 13:22:34 +01:00
Rohit Grover 7198945fb5 Adding LICENSE at the top level. 2015-09-02 11:04:21 +01:00
Rohit Grover 3f2f94ec1b update comment header for Gap::updateConnectionParams() 2015-09-01 12:52:31 +01:00
Rohit Grover 626c551477 minor improvement to comments for AuthCallbackParams. 2015-09-01 12:52:31 +01:00
Rohit Grover 3b01f2a250 Merge branch 'marcuschangarm-master' into develop 2015-09-01 12:51:08 +01:00
Marcus Chang 6f960cbecd Gap.h - Added onConnection callback chain simarly to the currently present onDisconnection callback chain. 2015-08-30 18:00:19 +01:00
Rohit Grover eb2130f7a6 Release 0.4.7
=============

* Depend on an updated version of nRF51822 which provides event handling
  through the mbed OS scheduler. As a result, all mbed-OS BLE event handling
  now happens in thread mode.

* minor: use "mbed-os" to select the target dependency on mbed-drivers. This
  allows bbc-micro builds.
2015-08-13 11:20:21 +01:00
Rohit Grover 5bf17c0e7c version v0.4.7 2015-08-13 11:10:40 +01:00
Rohit Grover 8de531a7b5 depend on an updated version of nRF51822 which provides event handling through minar. 2015-08-13 11:08:32 +01:00
Rohit Grover 9d7a7568b8 Use mbed-os as a target dependency.
This will be provided by the target configs.
2015-08-13 11:03:28 +01:00
Rohit Grover 603dae3166 Release 0.4.6
=============

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

* Add connection handle to GATT callback parameters. This paves the way for
  applications requiring multiple concurrent connections: read/write/HVX
  callbacks will be able to distinguish between peripherals by comparing per-
  device connection handles.

* Revert to an older, working version of eddystone. This is temporary, and
  will only help with demos. We will provide a mature Eddystone offering
  shortly.
2015-08-11 15:03:37 +01:00
Rohit Grover d5c5335fce version v0.4.6 2015-08-11 15:03:16 +01:00
Rohit Grover a15780a712 require 0.4.6 of nRF51 because of the implementation of connHandle field in callbacks. 2015-08-11 14:55:13 +01:00
Rohit Grover f5fb089d00 white space diffs. 2015-08-11 14:14:32 +01:00
Rohit Grover 8394e33e59 Add a connHandle field to most gattClient callbacks.
Merge branch 'jpbrucker-GattCB_conn_handle' into develop.
This should help applications with multiple concurrent connections.
2015-08-11 14:04:04 +01:00
Rohit Grover a59e1ee07b Merge branch 'GattCB_conn_handle' of https://github.com/jpbrucker/ble into jpbrucker-GattCB_conn_handle 2015-08-11 14:02:51 +01:00
Rohit Grover eec3f3518f URIBeaconConfigService: move declarations of some local variables closer to their use. 2015-08-11 13:51:26 +01:00
Rohit Grover 1b265c4e3d minor cosmetic change to the comment header for GapAdvertisingParams. 2015-08-11 13:50:31 +01:00
Jean-Philippe Brucker 99c7253051 Add connection handle in Gatt callback parameters
This commit paves the way for multiple device implementation:
read/write/HVX callbacks will be able to distinguish between
peripherals by comparing per-device connection handles.
2015-08-11 11:37:08 +01:00
Rohit Grover 3f3ceebeba Merge branch 'BlackstoneEngineering-eddystoneUpdate' into develop 2015-08-11 07:41:20 +01:00
Rohit Grover 3e2ef66dc2 Merge branch 'eddystoneUpdate' of https://github.com/BlackstoneEngineering/BLE_API into BlackstoneEngineering-eddystoneUpdate 2015-08-11 07:41:07 +01:00
Rohit Grover bc899071d2 oops. ble depends on nrf51822-v0.4.5. 2015-08-11 07:13:10 +01:00
Austin Blackstone f09b0b6307 modified eddystone service, currently blows away any associated services but it works 2015-08-10 15:00:01 -05:00
Rohit Grover 5333f3691a Release 0.4.5
=============

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

* Update module.json to depend on mbed-drivers instead of mbed-core.

* GapADVParams::get/setInterval() are now counterparts in terms of their units.

Bugfixes
~~~~~~~~

none.
2015-08-10 15:01:14 +01:00
Rohit Grover 3aac9f7c90 version v0.4.5 2015-08-10 14:54:59 +01:00
Rohit Grover 44633a5170 merge https://github.com/ARMmbed/ble/pull/65.
GapADVParams::get/setInterval() are now counterparts in terms of their units.
2015-08-10 14:51:11 +01:00
Rohit Grover 186500f135 rename to ADVParams::getIntervalInADVUnits() 2015-08-10 14:48:13 +01:00
Rohit Grover 8ed4a14b90 minor improvements in the form of comments to Joshua's commit around AdvParams::get/setInterval 2015-08-10 14:46:50 +01:00
Joshua Slater caadd8c62c added getIntervalInAdvUnits 2015-08-10 14:27:52 +01:00