🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Help with M5Stack CoreS3 BLE Implementation in UIFlow 2 - Detecting Specific Beacon

    Scheduled Pinned Locked Moved UIFlow
    4 Posts 3 Posters 3.3k Views
    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.
    • LiquidbeamL Offline
      Liquidbeam
      last edited by

      Hi everyone,

      I'm really struggling with BLE implementation in UIFlow 2 and could use some advice. Here's what I'm trying to accomplish:

      Goal:

      • Continuously scan for Bluetooth devices
      • React when a specific BLE beacon appears (e.g., change the screen color to white)

      What I've achieved so far:

      • Successfully scanning for devices
      • Retrieving the RSSI (signal strength) of discovered devices

      Current issues:

      • Unable to display the names of the discovered devices
      • Not sure how to detect a specific beacon and trigger an action

      I've been working on this for days now and I'm stuck. Can someone please provide some guidance? Here are some specific questions:

      1. How can I display the names of discovered BLE devices?
      2. What's the best way to identify a specific BLE beacon among the scanned devices?
      3. How can I trigger an action (like changing screen color) when the specific beacon is detected?

      Any help, code examples, or resources would be greatly appreciated. Thank you in advance!

      My Code:
      Bild_2024-08-08_132611360.png

      Terminal:
      Bild_2024-08-08_132709793.png

      Bat21B 1 Reply Last reply Reply Quote 0
      • Bat21B Offline
        Bat21 @Liquidbeam
        last edited by

        @Liquidbeam
        I'm interested in the project, I'm trying to make it so that when it detects a BLE MAC it turns on a light

        Bat21B 1 Reply Last reply Reply Quote 0
        • Bat21B Offline
          Bat21 @Bat21
          last edited by

          @Bat21
          I can't detect any with Atom Lite.

          1 Reply Last reply Reply Quote 0
          • B Offline
            BruceKu48
            last edited by

            Hi Liquidbeam,

            I know it has been a long time since you posted this, and I am curious if you ever got it to work. While I have worked with M5Stack (Blockly) for years. I know I can help you with the other aspects of your desired application and am more than willing to assist. This however is my first experience with BLE device scanning.

            I copied your code into my CoreS3 with UIFLOW2 V2.2.4, and I can't even replicate what you have done.

            I would very much appreciate an update on your experience.

            Thank you

            Bruce Kusens

            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
            • First post
              Last post