sheepDog last edited by
does anyone have a (simple) bluetooth sample for M5Stack?
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.
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.
wwh1260051266 last edited by
This is good! I have tested! But the target use about 71% program size about ESP32.
JJ last edited by
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.