OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Python BLE discover all UUID characteristics

  • Thread starter Thread starter Escaga Seen
  • Start date Start date
E

Escaga Seen

Guest
So far, this code is returning me the UUID of the service. But I have several characteristics inside of it, can I discover their UUID?

Code:
import asyncio
from bleak import BleakScanner

async def run():
    devices = await BleakScanner.discover()
    for d in devices:
        print(d.metadata)
            
loop = asyncio.get_event_loop()
loop.run_until_complete(run())
<p>So far, this code is returning me the UUID of the service. But I have several characteristics inside of it, can I discover their UUID?</p>
<pre class="lang-py prettyprint-override"><code>import asyncio
from bleak import BleakScanner

async def run():
devices = await BleakScanner.discover()
for d in devices:
print(d.metadata)

loop = asyncio.get_event_loop()
loop.run_until_complete(run())
</code></pre>
 

Latest posts

Top