I'm trying to work out the right sequence of AT commands to initialise BLE on my Sparkfun Micromod ESP32 Function Board (https://www.sparkfun.com/products/18430) that uses the ESP32-WROOM-32E. Hoping for expert guidance after trying many, many AT sequences with minimal progress success
If I enter this sequence after power up:
AT+BLEINIT=2
AT+BLEADVDATAEX="ESP32_XX1","02E5","123456789A",1
then ESP32_XX1 appears in the "Pair New Device" list on my Andoid Pixel 6, but when I select it nothing happens.
What other AT commands do I need to get them to pair / bond / communiate over BLE?
TIA
PS: Also previously I used AT+CWMODE=0 to turn WiFi off.
AT commands for ESP32 BLE to my Android ?
Re: AT commands for ESP32 BLE to my Android ?
You can follow this command sequence to complete pairing your device with your mobile phone, or refer to the example provided.
Code: Select all
1. AT+BLEINIT=2
OK
AT+BLESECPARAM?
+BLESECPARAM:13,4,16,3,3,0
OK
2. AT+BLEADVDATAEX="ESP32_XX1","02E5","123456789A",1
OK
3. Click on the ESP32_XX1 device on the mobile phone to connect
+BLECONN:0,"48:72:c5:6a:ed:5e"
+BLESECNCREQ:0,250524
4. After confirming that the key value (+ BLESECNCREQ:0,key) popped up on the device is consistent with the key value on the phone, execute the AT+BLECONFREPLY=0,1 command
AT+BLECONFREPLY=0,1
OK
+BLEAUTHCMPL:0,0
+BLECONNPARAM:0,6,6,6,0,500
+BLECONNPARAM:0,40,40,40,0,500
Who is online
Users browsing this forum: No registered users and 37 guests