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

    Connect to BLE device using random adddress type

    Scheduled Pinned Locked Moved LoPy
    bleconnectrandom
    4 Posts 3 Posters 1.5k Views 3 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.
    • K Offline
      Keptenkurk
      last edited by

      I'm unable to connect to my BT weighing scale using the examples. I can read it's address from adv = bluetooth.get_adv(), but connecting fails.
      When using the Bluez stack on a Raspberry Pi, I need to connect using the "random" parameter, like "gatttool -b F4:B8:5E:E6:63:96 -I -t random" when using gatttool on the commandline which works.
      I think i need a similar random way of connecting using "bluetooth.connect(adv.mac)" in micropython on the LoPy. Is that supported at all?

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

        As with pairing it's not possible to connect to random addresses yet, both need the security manager which hasn't been implemented yet

        S 1 Reply Last reply Reply Quote 0
        • K Offline
          Keptenkurk
          last edited by

          @jmarcelino thanks for responding!
          I'll keep an eye on the release notes for this...

          1 Reply Last reply Reply Quote 0
          • S Offline
            Sanjeev Kumar @jmarcelino
            last edited by

            @jmarcelino Just checking if this is resolved. I am still not able to connect to BLE device when using Bluetooth.RANDOM_ADDR.

            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