Reputation: 189
I could configure esp8266 as a tcp server, but after it is turned off and then turn on, esp8266's tcp sever gets disabled! Please help me! In fact for this I passed this Level:
AT+CIPMUX=1
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
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