!
5.2.15. AT+CIPSERVER—Deletes/Creates TCP or SSL Server *
Command
Response
Parameters
Notes
Messages
Example
5.2.16. AT+CIPSERVERMAXCONN—Set the Maximum Connections Allowed by Server *
Commands
Espressif
Query Command:
AT+CIPSERVER?
Function: to obtain information about the server
mode.
+CIPSERVER:<mode>,<port>,<SSL>,<SSL CA
enable>
OK
<mode>
:
‣ 0
: delete server.
‣ 1
: create server.
<port>
(optional parameter): port number; 333 by default.
[
<SSL>]
(optional parameter): string "SSL", to set an SSL server
[
<SSL CA enable>]
(optional parameter):
‣ 0
: disable CA.
‣ 1
: enable CA.
A server can only be created when multiple connections are activated (AT+CIPMUX=1).
•
Only one server is allowed to be created.
•
A server monitor will be automatically created when the server is created.
•
Connecting of a client to the ESP server will take up one connection. The connection will be
•
assigned an ID.
// If a connection is established, a message appears as below:
[<link ID>,] CONNECT
// If a connection ends, a message appears as below:
[<link ID>,] CLOSED
•
To create a TCP server:
AT+CIPMUX=1
AT+CIPSERVER=1,80
•
To create an SSL server:
AT+CIPMUX=1
AT+CIPSERVER=1,443,"SSL",1
Query Command:
AT+CIPSERVERMAXCONN?
Function: obtain the maximum number of
clients allowed to connect to the TCP or SSL
server.
33 97
!
5. TCP/IP-Related AT Commands
Set Command:
AT+CIPSERVER=<mode>[,<port>]
[,<SSL>,<SSL CA enable>]
Function: to set a TCP or SSL server.
OK
Set Command:
AT+CIPSERVERMAXCONN=<num>
Function: set the maximum number of clients
allowed to connect to the TCP or SSL server.
/!
2019.06
Need help?
Do you have a question about the ESP32 and is the answer not in the manual?
Questions and answers