ARMmbed / ble-x-nucleo-idb0xa1

port of BLE_API to ST BLE shield
14 stars 5 forks source link

Fix connection client iteration #19

Closed pan- closed 7 years ago

pan- commented 7 years ago

This PR depends on #18.

It fix the forwarding of isServiceDiscoveryActive and terminateServiceDiscovery to clients to the actual clients.

The previous code was just forwarding the function to the first _numClient. This would work if clients the connection pool are accessible sequentially unfortunatelly it is not the case.

With this fix the entirety of the connection pool is traversed and if a client is present then the action is forwarded.