Commit graph

490 commits

Author SHA1 Message Date
Rohit Grover
549b246f6a introduce State_t within NordicServiceDiscovery 2015-06-04 09:25:03 +01:00
Rohit Grover
ede98b007e UUID types have moved into UUID class. 2015-06-04 09:25:03 +01:00
Rohit Grover
acb585e077 terminate service discovery upon reaching the end handle. 2015-06-04 09:25:03 +01:00
Rohit Grover
4a2fd63867 intermediate checkin containing a printf() 2015-06-04 09:25:03 +01:00
Rohit Grover
0bfd7d583e handle matching characteristic UUIDs properly. 2015-06-04 09:25:03 +01:00
Rohit Grover
b4d743a9ad make service discovery idempotent. 2015-06-04 09:25:03 +01:00
Rohit Grover
7a7b768e37 get onTerminationCallback invoked at the end of serviceDiscovery 2015-06-04 09:25:03 +01:00
Rohit Grover
9a1cb12120 add ServiceDiscovery::isActive() 2015-06-04 09:25:03 +01:00
Rohit Grover
c058b2b4ec rename to sdSingleton. 2015-06-04 09:25:03 +01:00
Rohit Grover
661c9c6da0 SDiscovery: handle UUID matches properly during progression of services 2015-06-04 09:25:03 +01:00
Rohit Grover
f18a8ba27f Add some comments to explain the progress of service discovery. 2015-06-04 09:25:03 +01:00
Rohit Grover
41d56ae5e7 ServiceDiscovery::Launch() should take in const references for UUID. 2015-06-04 09:25:03 +01:00
Rohit Grover
be10d09d3f add a couple of comment blocks. 2015-06-04 09:25:03 +01:00
Rohit Grover
cb0daad7e9 merge versions of ServiceDiscovery::launch() into a single API. 2015-06-04 09:25:03 +01:00
Rohit Grover
3e58c43354 fix a bug in progressServiceDiscovery() where we did not allow for early termination. 2015-06-04 09:25:03 +01:00
Rohit Grover
3a72e5cd8a pass 'role' to processConnectionEvent. 2015-06-04 09:25:03 +01:00
Rohit Grover
46cf18e842 replaced more uses of Gap::address_t with Gap::Address_t 2015-06-04 09:25:03 +01:00
Rohit Grover
de85a0c01a adjusting the default maxConnectionInterval for connect to a more reasonable value. 2015-06-04 09:25:03 +01:00
Rohit Grover
2ab53ac039 nRF51Gap::connect() takes pointers instead of references. 2015-06-04 09:25:03 +01:00
Rohit Grover
1671d2f183 add support for Connection Parameters to connect() 2015-06-04 09:25:03 +01:00
Rohit Grover
373f31fe73 do error reporting in nRF51Gap::connect() 2015-06-04 09:25:03 +01:00
Rohit Grover
17eb78c336 an initial implementation for connect() 2015-06-04 09:25:03 +01:00
Rohit Grover
18340cdfcd handle switch of DiscoveredServiec and DiscoveredCharacteristic as classes. 2015-06-04 09:25:03 +01:00
Rohit Grover
f025b2de73 move service discovery into a separate header file within BLE_API 2015-06-04 09:25:03 +01:00
Rohit Grover
390295c78c white space diffs. 2015-06-04 09:25:03 +01:00
Rohit Grover
0aae8c60a1 move DiscoveredService and DiscoveredCharacteristic within ServiceDiscovery 2015-06-04 09:25:03 +01:00
Rohit Grover
c0ee657c2f reshuffle access qualifiers for members of NordicServiceDiscovery 2015-06-04 09:25:03 +01:00
Rohit Grover
c69bb58af6 remove extraneous printf() 2015-06-04 09:25:03 +01:00
Rohit Grover
3aae9f8ea6 terminate discovery upon encountering errors. 2015-06-04 09:25:03 +01:00
Rohit Grover
b57e1ec8e4 add the other form of launch() 2015-06-04 09:25:03 +01:00
Rohit Grover
ff7401b70d save matchingUUIDs in ServiceDiscovery::launch() 2015-06-04 09:25:03 +01:00
Rohit Grover
9144aba8dd invoke characteristicCallback 2015-06-04 09:25:03 +01:00
Rohit Grover
4e5a8459b4 invoke serviceCallback 2015-06-04 09:25:03 +01:00
Rohit Grover
4ece950d3c updated the definition of service/Characteristic callbacks 2015-06-04 09:25:03 +01:00
Rohit Grover
9e043b07f1 white space diffs. 2015-06-04 09:25:02 +01:00
Rohit Grover
53f022f172 move out progress*Discovery() into btle_discovery.cpp 2015-06-04 09:25:02 +01:00
Rohit Grover
cc9caf6944 white space diffs. 2015-06-04 09:25:02 +01:00
Rohit Grover
ce2898240f save callbacks at launch 2015-06-04 09:25:02 +01:00
Rohit Grover
c766a700b2 move most things into NordicServiceDiscovery 2015-06-04 09:25:02 +01:00
Rohit Grover
75938af286 remove btle_gattc.h 2015-06-04 09:25:02 +01:00
Rohit Grover
9516ab8850 white space diffs. 2015-06-04 09:25:02 +01:00
Rohit Grover
993a277c07 reorganized the division of helper functions between SD and NordicSD once again. 2015-06-04 09:25:02 +01:00
Rohit Grover
2f40cc9e7a move helper functions related to characteristicDiscovery into NordicSD. 2015-06-04 09:25:02 +01:00
Rohit Grover
0882a19dc3 move more stuff into NordicServiceDiscovery 2015-06-04 09:25:02 +01:00
Rohit Grover
a2e83d2955 variable renames. 2015-06-04 09:25:02 +01:00
Rohit Grover
03dfa626ec change access qualifier for members of ServiceDiscovery to protected. 2015-06-04 09:25:02 +01:00
Rohit Grover
11d76136a8 add class NordicServiceDiscovery 2015-06-04 09:25:02 +01:00
Rohit Grover
50a110cd42 partial separation of code related to discovery into files. 2015-06-04 09:25:02 +01:00
Rohit Grover
e3b5699231 launchCharacteristicDiscovery() returns an error code. 2015-06-04 09:25:02 +01:00
Rohit Grover
1985fa0e18 return ble_error_t from launchServiceDiscovery(). 2015-06-04 09:25:02 +01:00