Data Sheet
!
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>,<remoteIPordomainname>,<remoteport>[,<type>,<TCPkeep
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.
• <remoteIP>: remote IP or domain name.
• <remoteport>: remote port.
• [<type>](optional): TCP or UDP,TCPby default.
• [<TCPkeepalive>](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>,<remoteIP>,<remoteport>,<type>[,<UDPlocalport>]
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.
• <remoteIP>: remote IP or domain name.
• <remoteport>: remote port.
• [<type>](optional): UDP; TCPby default.
• [<UDPlocalport>] (optional): local port when UDP transparent transmission is enabled on power-
up.
Espressif
! /!51 58
2017.05