"from network import Bluetooth"
-
Following main.py code throws : "Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name Bluetooth"
Main.py content:
from network import Bluetooth
bluetooth = Bluetooth()
bluetooth.start_scan(-1) # start scanning with no timeout
while True:
print(bluetooth.get_adv())Boot.py content:
from machine import UART
import os
uart = UART(0, 115200)
os.dupterm(uart)Hope the misstake is all mine, I just received my module, it's looking real promising, but I had a bit of a hard time to get it up and runnning.
I'm on a SiPy, brand new.
-
Yeah, I realized that :(
Thanks for the quick reply.Hope to see the SiPy in updater tool soon now that I just bought two of 'em.
-
@maku
I see you already posted on the other thread and likely found the problem but, just in case you're stuck, what's happening is the SiPy doesn't have Bluetooth yet, it only has a very old firmware while the module goes through Sigfox certification.