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

    [SOLVED] BLE scans forever

    Scheduled Pinned Locked Moved Discussion
    ble
    4 Posts 2 Posters 925 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.
    • D Offline
      duffo64
      last edited by duffo64

      Hi guys,

      Since 1.10.1.b1 the scan never end. I have a bt.start_scan(5) in code, but after 5 seconds bt.isscanning() is not false (and it never changes state). What's up, doc ?

      Claudio

      /Claudio

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

        @duffo64
        Can you try updating to the latest 1.10.2.b1 please ?
        I can't reproduce the problem

        D 1 Reply Last reply Reply Quote 0
        • D Offline
          duffo64
          last edited by duffo64

          Thanks @jmarcelino
          I am already on 1.10.2.b1 and seen that the issue is happening since the previous update.
          But but... if you aren't able to reproduce, let me look into this more closely. My script is almost (almost !) the same.

          Claudio

          /Claudio

          1 Reply Last reply Reply Quote 0
          • D Offline
            duffo64 @jmarcelino
            last edited by duffo64

            @jmarcelino

            Got why. In the while loop where I test for bt.isscanning() I had to introduce an sleep_ms(1), since the scan termination wasn't recognized anymore.

            Thank you

            /Claudio

            1 Reply Last reply Reply Quote 1

            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