Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    "from network import Bluetooth"

    Scheduled Pinned Locked Moved SiPy
    3 Posts 2 Posters 1.5k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      maku
      last edited by maku

      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.

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        jmarcelino @maku
        last edited by

        @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.

        1 Reply Last reply Reply Quote 0
        • M Offline
          maku
          last edited by

          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.

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post

          Pycom on Twitter

          Pycom