How to use the able.STATE_DISCONNECTED function in able

To help you get started, we’ve selected a few able examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github slinger360 / NineRiFt-Lite / py9b / link / bleandroid.py View on Github external
def scan(self, addr):
		self._adapter.setaddr(addr)
		try:
			self._dev = self._adapter.start_client(self._addr)#performs connection
		except STATE_DISCONNECTED:
			raise LinkOpenException