Commit graph

18 commits

Author SHA1 Message Date
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 f2a0a2f09e Guard nordic specific implementation with #ifdef TARGET_NRF51822 2015-11-26 14:22:15 +00:00
Vincent Coubard 184d29c35b Various enhancement:
Add SafeBool class which allow to easily declare a safe bool operator in

  - 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

  - fix call propagation
  - use safe bool idiom

  - add documentation
  - onRadioNotification does mot call initRadioNotification anymore

  - documentation

  - documentation
2015-11-25 11:27:33 +00:00
Vincent Coubard 381345fe65 Allow user of GattClient to call write on a discovered characteristic with
the continuation function
2015-11-23 10:54:25 +00:00
Vincent Coubard 00cabcefea Verify ReadResponse identity 2015-11-22 21:22:59 +00:00
Vincent Coubard ebb982f7dc Add read end to end operation 2015-11-22 21:15:06 +00:00
Rohit Grover 1f30b48a15 fix the build error resulting from missing template instantiation in the case <object,member> tuple was used for BLE::init() 2015-11-03 11:56:46 +00:00
Rohit Grover aa7e4b2da7 BLE::init() should also be able to take a <object,member> tuple. 2015-11-03 10:55:31 +00:00
Rohit Grover 918af4fbac Major change:
- There's a new type: BLE::InitializationCompleteCallback_t
- init() now takes a completion callback. This is an optional parameter, if no callback is setup the application can still determine the status of initialization using BLE::hasInitialized() (see below).
- There's a new API: BLEInstanceBase::hasInitialized() which transports need to implement.
- BLEInstanceBase.h is no longer included from BLE.h. We use a forward declaration of BLEInstanceBase instead. This is required us to move implementations of BLE methods out of the header and into BLE.cpp.
- There's a new API:  BLE::getInstanceID(), which simply returns the ID of an instance.
- There are new error types around initialization.
2015-10-28 11:39:15 +00: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 984266ee8a oops. typo. 2015-09-07 15:24:28 +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
Joshua Slater e65471d680 Fixed bugs with Gap:: and GapAdvertisingParams 2015-08-06 11:04:38 +01:00
Joshua Slater 0f2ba674c8 Conversion from advertisement duration units to ms moved from Gap to GapAdvertisingParams. getInterval converts to ms. Added conversion in GapScanningParams 2015-08-06 10:43:04 +01:00
Richard Osterloh 41b4e077ff Refactor using new include paths 2015-07-02 11:41:37 +01:00
Rohit Grover 2d59404877 #49: replace DiscoveredCharacteristic::setupOnDataRead() with GattClient::onDataRead() 2015-07-01 08:17:44 +01:00
Rohit Grover 75beb80315 switch to a yotta layout 2015-06-19 13:37:31 +01:00