webbluetooth
webbluetooth copied to clipboard
Replace noble with simpleble
This is a port to replace Noble with SimpleBLE.
Unlike Noble, SimpleBLE requires no special drivers on Windows and no root permissions on Linux. Porting it to this project required rewriting a significant portion of the code. On the other hand, it simplifies type safety and is compatible with Deno and browsers.
Some other notes:
- It requires Node 14 or later because of my SimpleBLE bindings. Might be able to lower it with SimpleBLE patches, but it really shouldn't be that much of an issue.
- ESM only. This requires a modern version of Node anyway.
This port isn't finished yet. SimpleBLE is still missing a few things, like service filtering. I thought I'd submit this so you can look at it first and see if it's something you are opposed to.