🤖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

    UIFlow
    3
    4
    904
    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
      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
        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
          Bat21 @Bat21
          last edited by

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

          1 Reply Last reply Reply Quote 0
          • B
            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
            • First post
              Last post