Sadeq
Sadeq

Reputation: 189

How to save TCP server config in esp8266, so that it is retained on reboot?

then

AT+CIPSERVER=1,8888

That works as well as when esp8266 is turn on but when I disconnect power and then turn on settings are lost and when I use

AT+CIPMUX?

that returns

CIPMUX:0

Please help me!

Upvotes: 0

Views: 1170

Answers (1)

a3.14_Infinity
a3.14_Infinity

Reputation: 5861

On a power reset or restart, CMUX and CIPSERVER must be applied again. You can use the following reset procedure:

// close active connection
AT+CIPCLOSE=id
// stop server
AT+CIPSERVER=0
// restart
AT+RST
// enable multiple connections (required for server mode)
AT+CIPMUX=1
// start listening
AT+CIPSERVER=1,8888

Reference: https://medium.com/@nowir3s/getting-started-with-esp8266-875fb54441d6

Upvotes: 1

Related Questions