Skip to content

Adafruit СircuitPython backend #1812

@o-murphy

Description

@o-murphy

I have a sample solution to get bleak working on CircuitPython. For now I able to run BleakScanner on my esp32-s3 with no issues.
The general problem is some built-in dependencies is absent in CircuitPython (functools, inspect, uuid, asyncio.timeout). I used to replace it with native approaches for CircuitPython and it works, I used just adafruit _bleio and asyncio modules to make it.
The second problem is adafruit _bleio module is global and synchronous and can be used just on main thread, but there also few sollutions there.

I'm thinking about using a monkeypatching for the absent modules to get a seamless way to use bleak on CircuitPython

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions