Bluetooth
-
Hello,
does anyone have a (simple) bluetooth sample for M5Stack?
-
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.
-
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
-
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.
-
@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