You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both BT Classic and Wi-FI have support for normal transmission mode when using the respective send commands. When maintaining multiple connections having normal mode is beneficial.
Switching into passthrough mode for BLE SPP makes handling BT/Wi-Fi data difficult.
Describe the solution you'd like.
A method of sending data to a BLE SPP connection in normal mode, where once the data is transmitted to the ESP32 module, the module returns OK and returns to normal command mode.
For example adding length to the AT+BLESPP command or a new send command such as AT+BLESPPSEND=<length> which could work similar to AT+BTSPPSEND and AT+CIPSEND
Describe alternatives you've considered.
No other approach.
Additional context.
No response
The text was updated successfully, but these errors were encountered:
I recently worked this situation myself, and discovered that you can use the SPP without activating the passthrough mode.
What I do is to configure SPP as normal (based on the example code)
- AT+BLESPPCFG=1,1,7,1,5
But i do not activate the SPP Mode (I do not enter AT+BLESPP command).
When the connection is made, I will receive data from the remote device written to the RX channel (characteristic 304 registered for RX in SPP in the examples) as:
+WRITE:0,1,5,,<len>,<data>\r\n
And when we want to send, we use the characteristic registered for TX (it has to be property notify or indicate according to documentation, so in our case we use the 306, which has been subscribed in remote device):
AT+BLEGATTSIND=0,1,7,<len>\r\n
After this command, we receive 1 byte (the prompt symbol >), then we send the raw data (as many bytes as in announced, and we receive a confirmation message \r\OK\r\n.
It works for us on v4.0.0.0/release and in master branch of the ESP-AT firmware (our device is ESP32-C6-MINI-1). It is not documented to work like it, so it would be better if we get a clear answer from Espressif for this, but for now it works for us and might work for you.
Is your feature request related to a problem?
Both BT Classic and Wi-FI have support for normal transmission mode when using the respective send commands. When maintaining multiple connections having normal mode is beneficial.
Switching into passthrough mode for BLE SPP makes handling BT/Wi-Fi data difficult.
Describe the solution you'd like.
A method of sending data to a BLE SPP connection in normal mode, where once the data is transmitted to the ESP32 module, the module returns OK and returns to normal command mode.
For example adding length to the
AT+BLESPP
command or a new send command such asAT+BLESPPSEND=<length>
which could work similar toAT+BTSPPSEND
andAT+CIPSEND
Describe alternatives you've considered.
No other approach.
Additional context.
No response
The text was updated successfully, but these errors were encountered: