Commit graph

48 commits

Author SHA1 Message Date
James Crosby
488e24620d restructure to yotta module, with a few tweaks to get things building 2015-06-23 18:15: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
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
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
4755395711 switch to enqueue() and dequeue() for ServiceIndicesNeedingUUIDDiscovery 2015-06-04 09:25:04 +01:00
Rohit Grover
f342dcaed2 add ServiceIndicesNeedingUUIDDiscovery::getFirst() 2015-06-04 09:25:03 +01:00
Rohit Grover
248931a544 add comment blocks to explain serviceIndicesNeedingUUIDDiscovery. 2015-06-04 09:25:03 +01:00
Rohit Grover
3d9816a463 add class for ServicesNeedingUUIDDiscovery 2015-06-04 09:25:03 +01:00
Rohit Grover
c852d13470 white space diffs. 2015-06-04 09:25:03 +01:00
Rohit Grover
846f25433d initial working implementation for serviceUUID discovery. 2015-06-04 09:25:03 +01:00
Rohit Grover
18a8f47fbe switch access level of some constant members of NordicServiceDiscovery to public. 2015-06-04 09:25:03 +01:00
Rohit Grover
2ab99680ac Add a default constructor for NordicServiceDiscovery() 2015-06-04 09:25:03 +01:00
Rohit Grover
549b246f6a introduce State_t within NordicServiceDiscovery 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
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
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
ff7401b70d save matchingUUIDs in ServiceDiscovery::launch() 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
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