Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# blesync

Motivation: Original MicroPython to handle BLE communication is IRQ with callback functions [ubluetooth docs](https://docs.micropython.org/en/latest/library/ubluetooth.html). This library is to wrap this with synchronuous approach.


Comparison of scan devices procedure:

original in **ubluetooth**:

```
BLE.irq(...) - register handler `_IRQ_SCAN_RESULT` (all handlers in one function)
BLE.gap_scan(...) - returns nothing
```

our approach **blesync**:

```
blesync.scan(...) - returns iterator with the same structure as original uPy ubluetooth
```