I'm sending SSID and PW information from Android phone, and ESP8266 receives it and starts connection immediately. Problem is even though it connects WIFI and gets IP address etc, it can not start AT+CIPSTART="TCP","192.168.43.164",3000. Returns ERROR.
However, when I reset Arduino via reset button, it reloads SSID, PW from EEPROM, again successfully connects WIFI and gets IP address etc, BUT this time AT+CIPSTART="TCP","192.168.43.164",3000 works!
ST ā Station mode in which ESP acts as a device & connects to an existing Access point.
AP ā Access Point mode where the ESP itself acts as AP & other devices like Mobile can connect to it.
Both ā ST & AP both mode is allowed in ESP.The mode of operation is set by the AT command
AT+CWMODE = 1 for ST mode , 2 for AP mode & 3 for both.