Commit graph

733 commits

Author SHA1 Message Date
Rohit Grover 05edd0f454 minor white space diffs. 2015-06-15 08:12:22 +01:00
Rohit Grover 43177a02f7 remove un-necessary comments in GattClient.h 2015-06-15 08:09:58 +01:00
Rohit Grover bfc5480375 fixes #43. Added a few items to DisconnectionReason_t 2015-06-13 00:31:21 +01:00
Rohit Grover bc4233f22a white space and cosmetic changes. 2015-06-13 00:18:40 +01:00
Rohit Grover eaf65c9ec4 various services: changed member access levels from private to protected 2015-06-13 00:17:29 +01:00
Rohit Grover 1298a1dda9 certain services like the batteryService and heartRateService don't need to be singletons. 2015-06-13 00:14:52 +01:00
Rohit Grover 33e1d6f93a minor reordering of APIs in BLEDeviceInstanceBase 2015-06-12 17:50:53 +01:00
Rohit Grover 8ebf721ef2 move setTxPower() and getPermittedTxPowerValues() into Gap.h 2015-06-12 17:48:48 +01:00
Rohit Grover 06fe80d975 GattServer APIs should be mostly public 2015-06-12 17:35:12 +01:00
Rohit Grover ab66c925bc Gap APIs should be mostly public. 2015-06-12 17:34:52 +01:00
Rohit Grover 69726547cc Release 0.3.9
=============

A minor patch to fix a build error introduced by the previous
release. This has to do with certain declarations being made members
of class UUID.
2015-06-08 10:55:27 +01:00
Rohit Grover f6cd813d68 fix minor build errors arising from making certain declarations members of class UUID. 2015-06-08 10:54:52 +01:00
Rohit Grover 7e8977d8e7 Release 0.3.8
=============

This is a minor set of enhancements before we yotta-ize BLE_API.

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

* Minor rework for class UUID; added a default and copy constructor; and a != operator.

* Added copy constructor and accessors for GapAdvertisingParams.

* GapScanningParams:: remove unnecessary checks for SCAN_TIMEOUT_MAX.

* Add a comment header block to explain why BLEDevice::init() may not be safe
  to call from global static context.

* Introduce GattAttribute::INVALID_HANDLE.

* Replace some deprecated uses of Gap::address_t with Gap::Address_t.

Bugfixes
~~~~~~~~

* None.
2015-06-08 10:28:33 +01:00
Rohit Grover 9f26d2a308 define operator!= for UUID 2015-06-08 09:53:16 +01:00
Rohit Grover cdaa23edfd add UUID::setupLong() 2015-06-08 09:52:44 +01:00
Rohit Grover 27aae6bf41 Add a copy and default constructor for UUID.h.
add a comment to UUID constructor to explain MSB byte ordering.
2015-06-08 09:51:24 +01:00
Rohit Grover 77c592a9a9 Move certain UUID related declarations within the UUID namespace. 2015-06-08 09:47:28 +01:00
Rohit Grover abb753428b add GattAttribute::INVALID_HANDLE 2015-06-08 09:38:57 +01:00
Rohit Grover db326a1c70 replaced more deprecated uses of Gap::address_t 2015-06-08 09:36:04 +01:00
Rohit Grover 2ae75d427d minor change to comment header for launchServiceDiscovery() 2015-06-08 07:23:11 +01:00
Rohit Grover 03c8740344 we now have a working GattClient::write() 2015-06-05 13:30:01 +01:00
Rohit Grover 5f0668ee2c rename GattCharacteristicCallbackParams.h -> GattCallbackParamTypes.h 2015-06-05 11:23:07 +01:00
Rohit Grover c01f76cfbe cleanup around GattCallbackParamTypes 2015-06-05 11:13:31 +01:00
Rohit Grover 49c495d36f get rid of 'op' from GattCharacteristicReadCBParams 2015-06-05 10:50:23 +01:00
Rohit Grover 06deb96559 GattClient now reuses GattCharacteristicReadCBParams 2015-06-05 10:46:09 +01:00
Rohit Grover c9d1588dea white space diffs. 2015-06-05 10:41:16 +01:00
Rohit Grover 248c63d793 GattCharacteristicReadCBParams::len isn't a pointer. And data is const. 2015-06-05 10:40:49 +01:00
Rohit Grover c0eb59b498 oops. ReadCallback_t has moved into GattClient. 2015-06-05 10:12:57 +01:00
Rohit Grover 49ec8f8bc2 Add GattClient::WriteResponse* 2015-06-05 09:56:21 +01:00
Rohit Grover d250191883 remove extraneous header include. 2015-06-05 09:55:16 +01:00
Rohit Grover ee29ce32ef minor sanity check for DiscoveredCharacteristic::writeWoResponse() 2015-06-05 09:21:24 +01:00
Rohit Grover 1a9e68e197 ReadCallback_t moves into GattClient. 2015-06-05 09:20:41 +01:00
Rohit Grover 037ea9c6a7 use forward declarations. 2015-06-05 09:16:23 +01:00
Rohit Grover 92f61ed875 fix API header for writeWoResponse() 2015-06-05 08:20:48 +01:00
Rohit Grover a7cf062930 add a sanity check to DiscoveredCharacteristic::read(). 2015-06-05 08:04:19 +01:00
Rohit Grover a7c6dc1ac7 one massive commit to move towards GattClient. 2015-06-05 08:04:19 +01:00
Rohit Grover 2d692522a1 update URIBeaconConfigService to account for changes to UUID.h 2015-06-05 08:04:19 +01:00
Rohit Grover 2b27daba1f add read() to GattClient 2015-06-05 08:04:19 +01:00
Rohit Grover 59ce342f34 remove an extraneous printf() 2015-06-05 08:04:19 +01:00
Rohit Grover 2acb939c45 add a gattc pointer to DiscoveredCharacteristic. 2015-06-05 08:04:19 +01:00
Rohit Grover 2dbe62da9e minor re-organization of methods 2015-06-05 08:04:19 +01:00
Rohit Grover bab5a28166 add missing include for UUID.h 2015-06-05 08:04:19 +01:00
Rohit Grover e106a95137 introduce abstract class for GattClient 2015-06-05 08:04:19 +01:00
Rohit Grover e0bb4b9a95 add missing includes to BLEDeviceInstanceBase.h 2015-06-05 08:04:19 +01:00
Rohit Grover 0329541d84 DiscoveredCharacteristic doesn't have virtual functions any more. 2015-06-05 08:04:19 +01:00
Rohit Grover ecdb5f5121 Add comments to explain memory lifetimes for the discovered objects within discovery callbacks. 2015-06-05 08:04:19 +01:00
Rohit Grover 0390ccc1ea DiscoveredCharacteristic: expand comment header for read() and writeWoResponse() to include NOT_PERMITTED. 2015-06-05 08:04:19 +01:00
Rohit Grover d6f9d841c9 simplify the declaration of DiscoveredCharacteristic::Properties_t 2015-06-05 08:04:19 +01:00
Rohit Grover b4ab8eaff7 simplify declaration of ble_error_t in blecommon.h 2015-06-05 08:04:19 +01:00
Rohit Grover 6c94ed6639 add include of stdint.h to UUID.h 2015-06-05 08:04:19 +01:00