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

At instruction set and examples
Hide thumbs Also See for ESP32:
Table of Contents

Advertisement

!
5.2.10. AT+CIPSEND—Sends Data
Commands
Response
Parameters
Example
Espressif
Set Command:
1. F
or single connection: (
AT+CIPMUX=0
AT+CIPSEND=<length>
2. For m
ultiple connections: (
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
Otherwise, the system returns:
SEND FAIL
<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 9: AT Command Examples.
30 97
!
5. TCP/IP-Related AT Commands
)
AT+CIPMUX=1
)
Execute Command:
AT+CIPSEND
Function: to start sending data in
transparent transmission mode.
Wrap return > after executing this
command.
After entering the transparent transmission,
the data will be sent every 2048 bytes or
every 20ms.
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.
-
/!
2019.06

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