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

    Bluetooth on Lopy4 doesn't detect any device

    Scheduled Pinned Locked Moved LoPy
    bluetoothlopy4scan
    2 Posts 2 Posters 669 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.
    • A Offline
      AlejandroReyes
      last edited by

      Hello everyone, I'm trying to work with bluetooth on lopy4 and first I used this code from https://docs.pycom.io/chapter/tutorials/all/ble.html

      from network import Bluetooth
      bluetooth = Bluetooth()
      bluetooth.start_scan(-1)    # start scanning with no timeout
      while True:
          print(bluetooth.get_adv())
      

      Just to see how it works but it doesn't detect any bluetooth, I already tried with many devices: Iphone, Samsung, Huawei and even laptop, however the problem persists, all I get on the terminal is:
      None
      None
      None
      None
      None
      I don't understand why is not working this code from the documentation and I hope someone could know something about it.

      1 Reply Last reply Reply Quote 0
      • danD Offline
        dan
        last edited by

        Hi @AlejandroReyes,
        I've just tried this code and managed to find my BT headphones with it. The issue could be that your devices don't use BLE, so the LoPy board couldn't find them. Currently, only BLE is supported. You can find more on this on the Bluetooth docs page.

        Let me know if this helped!

        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