Commit graph

94 commits

Author SHA1 Message Date
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
Rohit Grover
eb97fcf064 minor change to avoid a compiler warning about un-used variable. 2015-08-07 15:27:34 +01:00
Rohit Grover
bff44f94a6 Adding an initial implementation for Eddystone beacon service. 2015-08-07 15:27:08 +01:00
Rohit Grover
45813579a5 fix #60: if scanning parameters are changed while scanning is active, their new values are propagated to the underlying stack rightaway. 2015-08-07 10:14:37 +01:00
Rohit Grover
24a989212a fix #64: GapAdvertisingData::getPayload() should return the payload pointer regardless of len. 2015-08-07 09:20:30 +01:00
Rohit Grover
3711ca3016 deprecate GattClient::onDataWrite() in favour of onDataWritten(). 2015-08-07 09:10:39 +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
Rohit Grover
97d939ca77 Minor updates to the implementation. Add a local struct to describe ADV fields. 2015-08-03 08:08:47 +01:00
Rohit Grover
ea37b64307 Merge branch 'develop' of https://github.com/sunsmilearm/BLE_API into sunsmilearm-develop 2015-08-03 07:23:21 +01:00
Xiao Sun
509ffdd1de Add a new function updateAdvertisingPayload()
add updateAdvertisingPayload() to update  one field of the advertising
payload
2015-08-03 14:05:16 +08:00
Rohit Grover
64e5ef32c1 minor update to a comment header. Add a mention of units for accumulateAdvertisingPayloadTxPower(). 2015-07-29 12:06:51 +01:00
Davide Bortolami
40929416ea minor corrections to the comments 2015-07-25 19:41:58 +02:00
Rohit Grover
cf1a66303f Rename some enums in GapAdvertisingData, and create some deprecated type aliases. This helps harmonize type-names. 2015-07-21 12:01:39 +01:00
Rohit Grover
74bf708b05 rename iBeaconService as iBeacon. 2015-07-21 11:44:36 +01:00
Rohit Grover
f12267fc71 Update comment header for onRadioNotification() to explain the second prototype. 2015-07-21 11:16:36 +01:00
Rohit Grover
c1c05e5f90 Extend onRadioNotification() to take a <object, member> pair.
Add new API to be implemented by BLE ports: initRadioNotification
2015-07-21 11:05:04 +01:00
Rohit Grover
5eda1ad9e7 make signature of BLE::onRadioNotification() more explicit.
void onRadioNotification(void (*callback)(bool))
This then is extended in Gap.h by:

    template <typename T>
    void onRadioNotification(T *tptr, void (T::*mptr)(bool));
2015-07-21 09:34:08 +01:00
Rohit Grover
26e9536a80 fix some typos in API comment blocks in BLE.h 2015-07-21 09:30:09 +01:00
Rohit Grover
90551b6eb7 Rename iBeaconService as iBeacon. This is not a Service in the BLE sense. 2015-07-21 09:24:05 +01:00
Rohit Grover
09076e1673 simplified some declarations: removed extraneous 'typedef' from typedef struct X {}; 2015-07-14 09:05:35 +01:00
Rohit Grover
86d7566467 white space diffs. 2015-07-14 08:20:31 +01:00
Ollie Ford
d583b13bba fix typo in GattService constructor
Reference to 'this characteristic' become 'this service'
2015-07-13 15:26:03 +01:00
Ollie Ford
ab17d9c409 expose optional descriptors in template constructors
Read/Write/Only/Array derivations forward `descriptors` and `numDescriptors` to base constructor
2015-07-13 15:22:59 +01:00
Rohit Grover
7d961c15f5 Merge branch 'master' of https://github.com/adfernandes/BLE_API into adfernandes-master 2015-07-13 07:39:40 +01:00
Andrew Fernandes
da20f2e2c7 Change DiscoveredCharacteristic API to return long or short UUIDs. 2015-07-10 11:50:36 -04:00
Rohit Grover
9d289f811b minor changes to comments for porting. 2015-07-06 14:39:46 +01:00
Rohit Grover
735e18aab3 provide a useful initial implementation for GattClient::discoverServices() 2015-07-06 14:35:05 +01:00
Rohit Grover
0d55096d82 fix #53: add GattClient::onHVX() and GattHVXCallbackParams 2015-07-06 09:31:37 +01:00
Rohit Grover
feb4e95753 minor change to a comment for poter(s). 2015-07-03 10:59:27 +01:00
Rohit Grover
163f9e010a add empty (void) declarations for unused variables. This avoids warnings.
I could have used the compiler-polyfill module, but I wanted to avoid creating that dependency.
2015-07-03 10:54:32 +01:00
Rohit Grover
737800d8ec fix a typo in a comment header 2015-07-02 09:36:02 +01:00
Rohit Grover
4ac9700a2b update LinkLossService with changes to GattWriteCallbackParams 2015-07-02 08:27:54 +01:00
Rohit Grover
417b857d1b changing a comment pattern to request action from porters. 2015-07-02 08:19:12 +01:00
Rohit Grover
9a0be47794 Introduce GattServer API to determine notification status for a characteristic.
follow up from https://github.com/mbedmicro/BLE_API/pull/41.
@jeremybrodt did a lovely job submitting that pull request, but there had been too many changes in the neighbouring code recently to merge his work directly. I didn't take the trouble of preseving his submission in the history; my apologies--credit for this API goes entirely to him.
2015-07-01 14:52:17 +01:00
Rohit Grover
453681182a change access levels to protected for various members of the standard services 2015-07-01 13:14:26 +01:00
Rohit Grover
b633e90c9c replace use of updateCharacteristicValue() with ble.gattServer().write() 2015-07-01 12:57:17 +01:00
Rohit Grover
7fb8b66ebb minor rename of a variable. 2015-07-01 11:33:38 +01:00
Rohit Grover
2d59404877 #49: replace DiscoveredCharacteristic::setupOnDataRead() with GattClient::onDataRead() 2015-07-01 08:17:44 +01:00
Rohit Grover
27bc31ee0c minor white space and comment header diffs. 2015-07-01 07:39:27 +01:00
Rohit Grover
2601599599 #46: rename GATT_MTU_SIZE_DEFAULT to BLE_GATT_MTU_SIZE_DEFAULT. This avoids a name conflict with the contant defined in Nordic-SDK. 2015-07-01 07:31:24 +01:00
Rohit Grover
dde04982bc fix mbedmicro/BLE_API/#16: move GATT_MTU_SIZE_DEFAULT into blecommon.h 2015-06-30 07:49:04 +01:00
Rohit Grover
75beb80315 switch to a yotta layout 2015-06-19 13:37:31 +01:00