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

    Bluetooth

    FAQS
    5
    5
    26.8k
    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
      sheepDog
      last edited by

      Hello,

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

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