Connecting BLE: android app <--> ESP32 #9507
-
Hi guys, I have mentioned the Bluedot app, but it could be any other app suitable for eg driving a remote control car. Could someone suggest me examples or tutorials to learn about this? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Bluedot (from what I can tell from the docs) communicates over rfcomm, which is Bluetooth Classic. rfcomm is essentially a serial port over Bluetooth. MicroPython only supports Bluetooth Low Energy. Adafruit have an Android/iOS app called "Bluefruit Connect" which includes a controller mode. It's been a while, but I'm fairly sure that Bluefruit works over the Nordic UART Service (essentially rfcomm but for BLE). I think you should be able to use https://github.com/micropython/micropython/blob/master/examples/bluetooth/ble_uart_peripheral.py to receive events from Bluefruit. |
Beta Was this translation helpful? Give feedback.
-
Some links of my experimentation on Android/BLE and also android/WiFi ble esp32 notification/android youtube demo ble notification esp32, source in the description |
Beta Was this translation helpful? Give feedback.
-
I have just completed the documentation and it is available at #9925 |
Beta Was this translation helpful? Give feedback.
Bluedot (from what I can tell from the docs) communicates over rfcomm, which is Bluetooth Classic. rfcomm is essentially a serial port over Bluetooth.
MicroPython only supports Bluetooth Low Energy.
Adafruit have an Android/iOS app called "Bluefruit Connect" which includes a controller mode.
It's been a while, but I'm fairly sure that Bluefruit works over the Nordic UART Service (essentially rfcomm but for BLE). I think you should be able to use https://github.com/micropython/micropython/blob/master/examples/bluetooth/ble_uart_peripheral.py to receive events from Bluefruit.