antirez / freakwan

A floor-routing WAN implementing a chat over bare-LoRa (no LoRaWAN).
BSD 2-Clause "Simplified" License
374 stars 17 forks source link

Add optional BLE support #2

Closed eriol closed 1 year ago

eriol commented 1 year ago

This code depends on ble_uart_peripheral (and ble_advertising) from micropython: both are in examples/bluetooth/ directory.

If the needed modules are not flashed to the board the ble support is disabled: the receive_from_ble coroutine will be an infinite loop with a sleep.

eriol commented 1 year ago

We decided to vendor, for now, the 2 micropython examples for BLE UART. We plan to rewrite the BLE UART part.

eriol commented 1 year ago

@antirez thanks for rebasing and merging this! I'm closing this PR since it's already merged.