Commit graph

652 commits

Author SHA1 Message Date
Rohit Grover bb88aaad7b renamed BLEDevice to BLE 2015-06-17 09:25:18 +01:00
Rohit Grover 0c2e06ff0f Merge pull request #12 from adfernandes/gattClient
Fix various GCC compilation issues.
2015-06-17 07:47:37 +01:00
Andrew Fernandes fbfc6d16f3 Fix various GCC compilation issues. 2015-06-16 15:08:32 -04:00
Rohit Grover c796271c91 Merge branch 'gattClient' into develop 2015-06-16 10:52:31 +01:00
Rohit Grover 6d1bf116e1 fix #1: update license headers for all sources obtained from nordic-SDK using a new template obtained from Nordic. 2015-06-16 09:28:17 +01:00
Rohit Grover efcb88a147 move setTxPower() and getTxPowerLevels() into Gap.h 2015-06-12 17:50:05 +01:00
Rohit Grover 4d24dc24c9 DFU: disable CRC checks based on the init packet. 2015-06-09 08:10:04 +01:00
Rohit Grover 9f72c4ba7c Release 0.3.7
=============

This is a minor set of enhancements mostly around reduce our global static
memory footprint.

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

* Reduce the maximum number of CHARACTERISTICS and DESCRIPTORS that can be
  handled. This has memory implications for static global memory. It should
  be possible to re-architect our solution for add_characteristic() to not
  require these limits; hopefully we'll get there soon.

* Move nRF51GattServer::getInstance() into a .cpp file; same for nRF51Gap::getInstance().

* Reduce max bonds to managed by device-manager to 4; this has memory implications for static global memory.

* Reduce pStorage command queue size to 2; this has memory implications for static global memory.

* Replace uses of deprecated Gap::addr_type_t with Gap::AddressType_t.

* Some UUID-related types have moved into UUID class. Minor changes were needed to work around build errors.

Bugfixes
~~~~~~~~

* None.
2015-06-08 10:37:21 +01:00
Rohit Grover d7f869bda7 UUID types have moved into UUID class. 2015-06-08 09:47:09 +01:00
Rohit Grover d3889dfb7e rename nRF* to nRF51* 2015-06-05 15:25:25 +01:00
Rohit Grover 3f88e3e384 remove extraneous comment carrying old code. 2015-06-05 13:31:28 +01:00
Rohit Grover 16137b5897 we now have a working nRFGattClient::write() 2015-06-05 13:30:48 +01:00
Rohit Grover 3bea28cfae cleanup around GattCallbackParamTypes 2015-06-05 11:16:31 +01:00
Rohit Grover ce514155d3 use GattCharacteristicReadCBParams 2015-06-05 10:46:41 +01:00
Rohit Grover c182fef4bb accommodate GattClient::WriteOp_t 2015-06-05 09:58:17 +01:00
Rohit Grover f49e3469ae setup save of GattClient pointer in DiscoveredClient 2015-06-05 09:26:41 +01:00
Rohit Grover 5a4e62f169 one massive commit to integrate with GattClient.
DiscoveredCharacteristic still needs to setup gattc pointers.
2015-06-04 14:44:44 +01:00
Rohit Grover 093cc129bb nRFDiscovery is now a part of the nRFGattClient object. 2015-06-04 09:25:04 +01:00
Rohit Grover 168eed4ee4 nRFDiscoveredCharacteristic::setup() takes a GattClient poitner 2015-06-04 09:25:04 +01:00
Rohit Grover 9d50304018 add read() to nRFGattClient. 2015-06-04 09:25:04 +01:00
Rohit Grover 0cc48daf77 introduce implementation for nRF51GattClient 2015-06-04 09:25:04 +01:00
Rohit Grover 1fc421bad1 intermediate checkin as nRFDiscoveredCharacteristic moves into GattClient implementation. 2015-06-04 09:25:04 +01:00
Rohit Grover d708c588ee handle NOT_PERMITTED for read() and writeWoResponse() 2015-06-04 09:25:04 +01:00
Rohit Grover 4ec5b9443b nRFDiscoveredCharacteristic: handle setup of properties correctly. 2015-06-04 09:25:04 +01:00
Rohit Grover 7cf266a318 introduce nRFDiscoveredCharacteristic::writeWoResponse() 2015-06-04 09:25:04 +01:00
Rohit Grover c874aa4327 remove un-necessary printf() 2015-06-04 09:25:04 +01:00
Rohit Grover 395446dbe4 serviceCallback should be called only if characteristic UUID filter is wildcard. 2015-06-04 09:25:04 +01:00
Rohit Grover 3c323d4bee characteristic callback should only be called for a matching char if service-UUID filter is set. 2015-06-04 09:25:04 +01:00
Rohit Grover 91c7c03ed4 DiscoveredServiceCallback() now takes a pointer instead of a reference. 2015-06-04 09:25:04 +01:00
Rohit Grover e3c989a079 handle the read response event. :) 2015-06-04 09:25:04 +01:00
Rohit Grover 83daae7c85 DiscoveredCharacteristicCallback now takes a pointer instead of a reference 2015-06-04 09:25:04 +01:00
Rohit Grover 3630fb0c8d remove printfs from nRFDiscoveredCharacteristic::read() 2015-06-04 09:25:04 +01:00
Rohit Grover 4730615cb2 don't memset(0) the discovered Characteristics or Services in reset*(); that destroys the pointer to virtual tables 2015-06-04 09:25:04 +01:00
Rohit Grover 771213d522 split out nRFDiscoveredCharacteristic.h from btle_discovery.h 2015-06-04 09:25:04 +01:00
Rohit Grover 59db8674f2 provide a definition for DiscoveredCharacteristic::onDataReadCallback 2015-06-04 09:25:04 +01:00
Rohit Grover 1687cf1bb8 white space diffs. 2015-06-04 09:25:04 +01:00
Rohit Grover 2e38bb80b6 flesh out nRFDiscoveredCharacteristic::read() 2015-06-04 09:25:04 +01:00
Rohit Grover 12ed0b3884 move variants of setup into nRFDiscoveredCharacteristic. 2015-06-04 09:25:04 +01:00
Rohit Grover 543e493d70 add to the comment header for DiscoveredCharacteristic::read() 2015-06-04 09:25:04 +01:00
Rohit Grover 853d49257f DiscoveredCharacteristic::read() returns ble_error_t 2015-06-04 09:25:04 +01:00
Rohit Grover 4899e23531 introduce nRFDiscoveredCharacteristic. 2015-06-04 09:25:04 +01:00
Rohit Grover 1be6900b4e white space diffs. 2015-06-04 09:25:04 +01:00
Rohit Grover 579beff995 add CharUUIDDiscoveryQueue 2015-06-04 09:25:04 +01:00
Rohit Grover 30b9f534cd rename to ServiceUUIDDiscoveryQueue 2015-06-04 09:25:04 +01:00
Rohit Grover 9c2636cf5c minor cosmetic changes. 2015-06-04 09:25:04 +01:00
Rohit Grover 7fb9212f3b comment block for triggerFirst() 2015-06-04 09:25:04 +01:00
Rohit Grover 8139cff2cf moving things around within a class. 2015-06-04 09:25:04 +01:00
Rohit Grover ecb6f20d4c rename to parentDiscoveryObject. 2015-06-04 09:25:04 +01:00
Rohit Grover 1fa204ecbd update max connection interval for the default connection parameters. 2015-06-04 09:25:04 +01:00
Rohit Grover 4755395711 switch to enqueue() and dequeue() for ServiceIndicesNeedingUUIDDiscovery 2015-06-04 09:25:04 +01:00