!
5.2.5.
AT+CIPSENDEX—Sends Data
Commands
Response
Parameters
5.2.6.
AT+CIPCLOSE—Closes TCP/UDP/SSL Connection
Commands
Response
Parameters
Espressif
Set Command:
1. Single connection: (
+CIPMUX=0
AT+CIPSENDEX=<length>
2. Multiple connections: (
+CIPMUX=1
AT+CIPSENDEX=<link ID>,<length>
3. Remote IP and ports can be set in UDP transmission:
AT+CIPSENDEX=[<link ID>,]<length>[,<remote IP>,<remote port>]
Function: to configure the data length in normal transmission mode.
Send data of designated length.
Wrap return > after the set command. Begin receiving serial data. When the requirement of data length,
determined by <length>, is met, or when \0 appears in the data, the transmission starts.
If connection cannot be established or gets disconnected during transmission, the system returns:
ERROR
If data are successfully transmitted, the system returns:
SEND OK
<link ID>: ID of the connection (0~4), for multiple connections.
•
<length>: data length, MAX: 2048 bytes.
•
When the requirement of data length, determined by <length>, is met, or when \0 appears, the
•
transmission of data starts. Go back to the normal command mode and wait for the next AT
command.
When sending \0, please send it as \\0.
•
Set Command (for multiple connections):
AT+CIPCLOSE=<link ID>
Function: to close TCP/UDP connection.
OK
<link ID>: ID number of connections to be closed; when ID=5, all
connections will be closed.
)
)
27 53
!
/!
5. TCP/IP-Related AT Commands
Execute Command (for single
connection):
AT+CIPCLOSE
-
2017.02
Need help?
Do you have a question about the ESP32 and is the answer not in the manual?
Questions and answers