Fix deprecation notice for ble::Gap::getState() #10646
The deprecation notice suggests getConnectionCount() which did not land in the final API.
The proper replacement of getState().connected is keeping a local record in the application and updating it during connection and disconnection callbacks.
Pull request type
ready for merge
May 24, 2019
May 24, 2019
26 checks passed
continuous-integration/jenkins/pr-head This commit looks goodDetails
continuous-integration/travis-ci/pr The Travis CI build passedDetails
travis-ci/events Success! Runtime is 9599 cycles.Details
travis-ci/littlefs Success! Code size is 8448B.Details
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews.