Hi , I am getting the following error while importing Bluetooth Module in NRF52840 DK in REPL. Does Micropython supports BLE module? Please advise.
import bluetooth
Traceback (most recent call last):
File "", line 1, in
ImportError: no module named 'bluetooth'
Also it is not importing Network Module.
Bluetooth Module availability on Zephyr Port for NRF52840 DK
Re: Bluetooth Module availability on Zephyr Port for NRF52840 DK
Currently the bluetooth module (documented here: https://docs.micropython.org/en/latest/ ... tooth.html ) is only available for STM32, ESP32 and Unix.
I plan to update the nRF port to use this module too, but for now the nRF port has its own BLE module called "ubluepy". There are some examples in https://github.com/micropython/micropyt ... f/examples
The plan is to remove the use of the Nordic SoftDevice altogether and move to the NimBLE HCI controller (and then use the NimBLE host stack already used by the other ports).
There's currently no network support for nRF (that I'm aware of).