Nano RGB LED mesh
Fork of nRF51822 by
Diff: source/nRF5xCharacteristicDescriptorDiscoverer.h
- Revision:
- 543:53215259c0d2
- Parent:
- 542:1bf9c597f44f
- Child:
- 544:9e3d053ad4ec
diff -r 1bf9c597f44f -r 53215259c0d2 source/nRF5xCharacteristicDescriptorDiscoverer.h --- a/source/nRF5xCharacteristicDescriptorDiscoverer.h Mon Jan 11 10:19:02 2016 +0000 +++ b/source/nRF5xCharacteristicDescriptorDiscoverer.h Mon Jan 11 10:19:03 2016 +0000 @@ -73,7 +73,7 @@ /** * @brief Called by the nordic stack when the discovery is over. */ - void terminate(uint16_t handle); + void terminate(uint16_t handle, ble_error_t err); private: nRF5xCharacteristicDescriptorDiscoverer(const nRF5xCharacteristicDescriptorDiscoverer&); @@ -105,9 +105,10 @@ onDiscovery.call(¶ms); } - void terminate() { + void terminate(ble_error_t err) { CharacteristicDescriptorDiscovery::TerminationCallbackParams_t params = { - characteristic + characteristic, + err }; onTerminate.call(¶ms); } @@ -125,6 +126,8 @@ void removeDiscovery(Discovery* discovery); Discovery* getAvailableDiscoverySlot(); bool isConnectionInUse(uint16_t connHandle); + static ble_error_t gattc_descriptors_discover(uint16_t connection_handle, uint16_t start_handle, uint16_t end_handle); + size_t maximumConcurrentConnectionsCount; Discovery *discoveryRunning;