Commit Graph

12 Commits

Author SHA1 Message Date
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