At+Cipsend-Sends Data - Espressif ESP32 At Instruction Set

Hide thumbs Also See for ESP32:
Table of Contents

Advertisement

!
5.2.4.
AT+CIPSEND—Sends Data
Commands
Response
Parameters
Example
Espressif
Set Command:
1. Single connection: (
+CIPMUX=0
AT+CIPSEND=<length>
2. Multiple connections: (
+CIPMUX=1
AT+CIPSEND=<link ID>,<length>
3. Remote IP and ports can be set in UDP
transmission:
AT+CIPSEND=[<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 is met, the transmission of data starts.
If the connection cannot be established or gets
disrupted during data transmission, the system
returns:
ERROR
If data is transmitted successfully, the system
returns:
SEND OK
<link ID>: ID of the connection (0~4), for multiple
connections.
<length>: data length, MAX: 2048 bytes.
[<remote IP>]: remote IP can be set in UDP
transmission.
[<remote port>]: remote port can be set in UDP
transmission.
For more information please see Chapter 7: AT Command Examples.
)
)
Execute Command:
AT+CIPSEND
Function: to start sending data in transparent
transmission mode.
Wrap return > after executing this command.
Enter transparent transmission, with a 20-ms
interval between each packet, and a maximum of
2048 bytes per packet.
When a single packet containing +++ is received,
ESP32 returns to normal command mode.
Please wait for at least one second before
sending the next AT command.
This command can only be used in transparent
transmission mode which requires single
connection.
For UDP transparent transmission, the value of
<UDP mode> has to be 0 when using AT
+CIPSTART.
-
!
26 53
/!
5. TCP/IP-Related AT Commands
2017.02

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP32 and is the answer not in the manual?

Questions and answers

Table of Contents