
!
5. TCP/IP-Related AT Commands
5.2.16. AT+SAVETRANSLINK—Saves the Transparent Transmission Link in Flash
Save TCP Single Connection in Flash
Set Command
AT+SAVETRANSLINK=<mode>,<remote IP or domain name>,<remote port>[,<type>,<TCP keep
alive>]
Response
OK
or
ERROR
Parameters
•
<mode>
:
‣
0
: ESP8266 will NOT enter UART-Wi-Fi passthrough mode on power-up.
‣
1
: ESP8266 will enter UART-Wi-Fi passthrough mode on power-up.
•
<remote IP>
: remote IP or domain name.
•
<remote port>
: remote port.
•
[<type>]
(optional):
TCP
or
UDP
,
TCP
by default.
•
[<TCP keep alive>]
(optional): TCP is kept alive. This function is disabled by default.
‣
0
: disables the TCP keep-alive function.
‣
1 ~ 7200
: keep-alive detection time interval; unit: second (s).
Notes
•
This command will save the UART-Wi-Fi passthrough mode and its link in the flash. ESP8266 will
enter the UART-Wi-Fi passthrough mode on any subsequent power cycles.
•
As long as the remote IP (or domain name) and port are valid, the configuration will be saved in the
flash.
Example
AT+SAVETRANSLINK=1,"192.168.6.110",1002,"TCP"
Save UDP Transmission in Flash
Set Command
AT+SAVETRANSLINK=<mode>,<remote IP>,<remote port>,<type>[,<UDP local port>]
Response
OK
or
ERROR
Parameters
•
<mode>
:
‣
0
: normal mode; ESP8266 will NOT enter UART-Wi-Fi passthrough mode on power-up.
‣
1
: ESP8266 enters UART-Wi-Fi passthrough mode on power-up.
•
<remote IP>
: remote IP or domain name.
•
<remote port>
: remote port.
•
[<type>]
(optional):
UDP
;
TCP
by default.
•
[<UDP local port>]
(optional): local port when UDP transparent transmission is enabled on power-
up.
Espressif
!
/
!
51 58
2017.05