DrAma999 / LittleBlueTooth

A simple library that helps you in connecting with BLE devices
MIT License
79 stars 17 forks source link

List of services #35

Closed 666bsw closed 2 years ago

666bsw commented 2 years ago

Hello! how can i scan the list of available services?

Thank you

DrAma999 commented 2 years ago

Hello, what do you mean exactly? Are you looking for a way to know all the services exposed by a peripheral or do a scan without specifying services? Best, Andrea

666bsw commented 2 years ago

Hello, Andrea! I want to scan the device and find out the list of all services that are on the device. services are not known in advance. device scanner.

Thank you, Sergey

DrAma999 commented 2 years ago

Ok, understood. Unfortunately at the moment is not possible, you always need to know in advance services and characteristics that are discovered (confirmed) lazy during read/write/notify requests. It shouldn't be difficult to ad that feature but I can't make any promise about when I will be available to do it. In the meantime any pull-request is well accepted if you want to try to implement it by yourself. getService method of Peripheral is a good starting point. Best, Andrea

666bsw commented 2 years ago

thanks! I already realized that this is impossible. the framework is very user-friendly, respect this is the only thing that I lacked

Thank you, Sergey