How can I exit SPP mode?
Posted: Fri Sep 27, 2024 9:55 pm
Hi everyone,
I have an ESP32-WROOM-32D, and I’ve installed the AT firmware. I'm currently trying to execute this example: Establish SPP connection between ESP32 and mobile phone and transmit data in UART-Bluetooth LE passthrough mode. I'm using the following commands:
AT+BLEINIT=2
AT+BLEGATTSSRVCRE
AT+BLEGATTSSRVSTART
AT+BLEADVPARAM=50,50,0,0,7,0,,
AT+BLEADVDATA="0201060809534F434F52524F030302A0"
AT+BLEADVSTART
After these steps, I successfully establish a connection:
18:24:07.849 -> +BLECONN:0,"51:4a:42:d8:92:12"
18:24:08.129 -> +BLECONNPARAM:0,0,0,6,0,500
18:24:08.631 -> +BLECFGMTU:0,517
18:24:08.678 -> +WRITE:0,1,6,1,2,�
18:24:08.678 -> +BLECONNPARAM:0,0,0,39,0,500
Then I configure and start SPP mode:
AT+BLESPPCFG=1,1,6,1,4
AT+BLESPP
Everything works well, but I’m wondering: How can I exit SPP mode without resetting the board?
I have an ESP32-WROOM-32D, and I’ve installed the AT firmware. I'm currently trying to execute this example: Establish SPP connection between ESP32 and mobile phone and transmit data in UART-Bluetooth LE passthrough mode. I'm using the following commands:
AT+BLEINIT=2
AT+BLEGATTSSRVCRE
AT+BLEGATTSSRVSTART
AT+BLEADVPARAM=50,50,0,0,7,0,,
AT+BLEADVDATA="0201060809534F434F52524F030302A0"
AT+BLEADVSTART
After these steps, I successfully establish a connection:
18:24:07.849 -> +BLECONN:0,"51:4a:42:d8:92:12"
18:24:08.129 -> +BLECONNPARAM:0,0,0,6,0,500
18:24:08.631 -> +BLECFGMTU:0,517
18:24:08.678 -> +WRITE:0,1,6,1,2,�
18:24:08.678 -> +BLECONNPARAM:0,0,0,39,0,500
Then I configure and start SPP mode:
AT+BLESPPCFG=1,1,6,1,4
AT+BLESPP
Everything works well, but I’m wondering: How can I exit SPP mode without resetting the board?