Hi!
I am looking at the latest docs, and they tell me that the module to use, is the ubluetooth. Nevertheless, for the latest image available for the ESP32, that lib does not get recognized. Moreover, only "bluetooth" module works. And the examples in the bluetooth examples use "bluetooth" and not "ubluetooth"
Docs: http://docs.micropython.org/en/latest/l ... tooth.html
Examples: https://github.com/micropython/micropyt ... /bluetooth
Is there something I am missing out?
Thanks,
bluetooth vs ubluetooth
Re: bluetooth vs ubluetooth
The sumary is that the module is called "ubluetooth" but MicroPython has a feature where any ufoo module is also available as foo, if foo is not available elsewhere. This is described here: http://docs.micropython.org/en/latest/l ... -libraries.mflmartin wrote: ↑Thu Feb 04, 2021 10:13 pmI am looking at the latest docs, and they tell me that the module to use, is the ubluetooth. Nevertheless, for the latest image available for the ESP32, that lib does not get recognized. Moreover, only "bluetooth" module works. And the examples in the bluetooth examples use "bluetooth" and not "ubluetooth"
The idea is that you could write foo.py, to provide a more feature-full version of ufoo, and then have foo.py import all the base functionality from ufoo.
e.g.
Code: Select all
foo.py:
from ufoo import *
def extra_thing():
pass