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

    Bluetooth

    Scheduled Pinned Locked Moved FAQS
    5 Posts 5 Posters 29.2k Views 1 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.
    • S Offline
      sheepDog
      last edited by

      Hello,

      does anyone have a (simple) bluetooth sample for M5Stack?

      1 Reply Last reply Reply Quote 0
      • E Offline
        ElectroMagus
        last edited by ElectroMagus

        The ESP32 has a bluetooth stack, but the manufacturer (EspressIf) is still finishing their software implementation to manage it.

        It's not a limitation of the M5 hardware, it's just that the existing Arduino libraries are dependent on the processor's specific hardware registers in order to function. Until EspressIf finishes their work and publishes it, support for Bluetooth on any ESP32 based platform will be limited.

        If you use PlatformIO instead of the Arduino IDE, you could potentially use EspressIf's Dev Platform but you wouldn't be able to use the M5Stack Libraries without some work.

        The Bluetooth hardware options have really been expanding lately, but the software side needs to catch up.

        1 Reply Last reply Reply Quote 1
        • I Offline
          ia2018
          last edited by

          It works great. There should be several ESP32 samples for BLE. Look for the SimpleBLEDevice under the examples for ESP32. It allows simple tx/rx to a phone/tablet etc. You might also checkout the nRF Connect app from Nordic for debugging.

          Good luck

          1 Reply Last reply Reply Quote 1
          • W Offline
            wwh1260051266
            last edited by

            http://www.instructables.com/id/ESP32-BLE-Android-App-Arduino-IDE-AWESOME/

            This is good! I have tested! But the target use about 71% program size about ESP32.

            JJJ 1 Reply Last reply Reply Quote 0
            • JJJ Offline
              JJ @wwh1260051266
              last edited by

              @wwh1260051266 @ia2018
              There is an interesting blog about BLE and the M5Stack as well as some code for the M5Stack at the links below.

              I haven't had a chance to try the code but it works for the writer.

              Similarly, this code uses 75% of the flash memory. BLE must be greedy.

              Blog: https://kongduino.wordpress.com/2018/01/17/basic-ble-functionality-on-the-m5stack/
              Github: https://github.com/Kongduino/M5_BMP280

              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