thegecko/bleat

Refactor peripheral discovery code

Closed this issue · 0 comments

All services, characteristics and descriptors are currently discovered after connect.

It would be better if this could be refactored into a discoverAll function which in turn is made up of discoverServices, discoverCharacteristics and discoverDescriptors.

Perhaps the API should stay unbroken by the connect functionality still undertaking all discovery by default.