AirM2M_ESP8266 WiFi module user manual V3.2
Shanghai AirM2M Communication Technology Co., Ltd
http://www.airm2m.com
Page 50
Execution
command
AT+CIPCLOSE
CLOSE OK
Closed the connection successfully
ERROR
Failed to close the connection
Test
command
AT+CIPCLOSE=?
OK
Notes
In single connection mode, the only possible value for <id> is 0.
Execution command is effective to single connection only, it will respond ERROR in
multi-connection.
Execution command AT+CIPCLOSE is only available when module is in TCP/UDP
CONNECTING or CONNECT OK status, in otherwise ocassions it will return ERROR.
Status after closure is IP CLOSE in single connection mode.
parameter definition
:
parameters definition
value
value instruction
<id>
Link No.
0~3
integer type, connection id
5.3.8 Obtain local IP address
:
AT+CIFSR
Set command can set the module’s IP address.
Read command can read the module’s current IP addresses in AP and/or STA modes.
Syntax
:
command
type
grammar
Responses
Description
Set command
AT+CIFSR=<mode>,<ip_addr>
,<netmask>,<gateway>
OK
Success
+CME ERROR: invalid input
value
Input error
Read
command
AT+CIFSR
<sta_IP address>
OK
When CWMODE=1
<ap_IP address>
OK
When CWMODE=2
<sta_IP address>
<ap_IP address>
OK
When CWMODE=3
ERROR
fail to get IP
Test
command
AT+CIFSR=?
OK