Commit graph

66 commits

Author SHA1 Message Date
Vincent Coubard
e0f693adde version v2.5.0 2016-01-12 11:15:36 +00:00
Vincent Coubard
53fe8b4fac version v2.4.0 2016-01-07 17:42:36 +00:00
Vincent Coubard
4af295aba6 version v2.3.0 2015-12-23 12:26:27 +00:00
Vincent Coubard
ca85939442 version v2.2.3 2015-12-23 11:12:35 +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
Rohit Grover
bd2b3cd05b version v2.2.2 2015-12-21 08:10:30 +00:00
Rohit Grover
002c761381 version v2.2.1 2015-12-18 13:23:52 +00:00
Rohit Grover
7ded8ae784 version v2.2.0 2015-12-17 08:52:14 +00:00
Rohit Grover
8b513a7ba2 add an interdependency to "ble-nrf51822": "^2.2.8" 2015-12-16 06:51:35 +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
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
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
605519dc6e version v2.1.9 2015-12-04 13:07:06 +00:00
Rohit Grover
2bbeb1d848 version v2.1.8 2015-12-03 08:42:44 +00:00
Rohit Grover
e15a022d1d update depenency for ble-nrf51822 to 2.1.3 2015-12-02 12:54:31 +00:00
Rohit Grover
2cf39597b5 version v2.1.7 2015-12-02 12:44:46 +00:00
Rohit Grover
68165f2f65 update depenency for ble-nrf51822 to 2.1.2 2015-12-02 12:41:44 +00:00
Rohit Grover
7317670ba4 version v2.1.6 2015-12-02 10:54:04 +00:00
Rohit Grover
34c8643d08 version v2.1.5 2015-12-02 09:38:42 +00:00
Rohit Grover
76c8c36e04 version v2.1.4 2015-11-26 14:44:36 +00:00
Rohit Grover
aad34762ee version v2.1.3 2015-11-26 11:10:41 +00:00
Rohit Grover
6dc7b8ff28 version v2.1.2 2015-11-26 10:48:35 +00:00
Rohit Grover
99fbc0fca3 version v2.1.1 2015-11-26 10:44:24 +00:00
Rohit Grover
c8c6456893 version v2.1.0 2015-11-26 09:45:47 +00:00
Christopher Métrailler
2fe337a590 Fix a broken link. 2015-11-24 20:00:02 +01:00
Rohit Grover
57654dba72 version v2.0.5 2015-11-16 14:48:53 +00:00
Rohit Grover
34c8447a63 version v2.0.4 2015-11-13 08:20:21 +00:00
Rohit Grover
73559d3bef version v2.0.3 2015-11-03 13:18:50 +00:00
Rohit Grover
2d6aade713 version v2.0.2 2015-11-03 12:33:35 +00:00
Rohit Grover
9d92facf33 version v2.0.1 2015-11-02 17:47:55 +00:00
Rohit Grover
2f92904fbe Release 2.0.0
=============

* Major change to the APIs around stack initialization. BLE::init() is now
  meant to only trigger the initialization of the underlying BLE stack. init()
  now takes a completion callback as an optional parameter; this callback gets
  invoked when initialization completes.

    - There's a new type: BLE::InitializationCompleteCallback_t

    - There's a new API: BLEInstanceBase::hasInitialized() which transports
      need to implement.

    - If no init-completion callback is setup, the application can still
      determine the status of initialization using BLE::hasInitialized().

    !This update may require in a minor change to existing apps!

    mbed-classic demos would look something like:

    ```
    main() {
        BLE::Instance().init();
        while (!BLE::Instance().hasInitialized()) {
            /* spin wait */
        }

        /* rest of the initialization ending in the waitForEvent loop */

    }
    ```

    whereas mbedOS demos would look like:

    ```
    void bleInitComplete(BLE &ble, ble_error_t error)
    {
        WsfTrace("bleInitComplete");

        if (error != BLE_ERROR_NONE) {
            WsfTrace("initailization failed with error: %u", error);
            return;
        }

        if (ble.getInstanceID() == BLE::DEFAULT_INSTANCE) {
            /* use the BLE instance */
        }
    }

    extern "C" void app_start(int argc, char *argv[])
    {
        BLE::Instance().init(bleInitComplete);
    }
    ```

    The Nordic stack initializes right-away, and so existing demos based on Nordic should continue to work.

* There's a new API: BLE::getInstanceID(), which simply returns the ID of an
  instance.

* Reduce the memory footprint consumed by a FunctionPointerWithContext to 20
  bytes (originally, it was 32 bytes !). Also enforce alignment constraints
  of the embedded pointer to member function. This should help with the size
  of a GattCharacteristic.

* Add EnvironmentalService.h under services/.

* There have been minor improvements to EddystoneService and EddystoneConfigService.

* We've added a CONTRIBUTING.md to help guide user contributions.
2015-11-02 08:52:41 +00:00
Rohit Grover
e0ef88f47d Merge branch 'master' into develop. 2015-10-30 08:42:53 +00:00
Rohit Grover
902e17e300 version v1.1.0 2015-10-28 12:56:15 +00:00
Johnny Robeson
8aaa385ed5 use the github url public url in module.json 2015-10-24 02:51:07 -04:00
Rohit Grover
5cb478cab6 Merge branch 'master' into develop 2015-10-23 14:47:28 +01:00
Rohit Grover
7aac367d99 add a target specific dependency 2015-10-23 14:34:25 +01:00
Bogdan Marinescu
0e54ba6c70 version v1.0.0 2015-10-19 16:17:06 +03:00
Bogdan Marinescu
df8a41c80a Updated dependencies 2015-10-19 16:17:06 +03:00
Vincent Coubard
df088f57aa Add st-ble-shield as a possible target dependency. 2015-10-09 14:58:16 +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
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
d5c5335fce version v0.4.6 2015-08-11 15:03:16 +01:00