So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By kmehranh
#62736 I'm trying to send a simple message ("Hello") from one ESP8266 module to another using http://rancidbacon.com/files/kiwicon8/ESP8266_WiFi_Module_Quick_Start_Guide_v_1.0.4.pdf

The sender AT commands are:

Code: Select allAT+CIPMUX=1 // Is used to start a multi-IP connection
AT+CIPSERVER=1,80// Configure ESP8266 as server

The receiver AT commands are:

Code: Select allAT+CIPMUX=1
AT+CWJAP="ESP1 SSID", "ESP1 PASSWORD" //Connects to sender successfully
AT+CIPSTART=1,"TCP","192.168.4.1",80 //Establish TCP connection

The CIPSTART command fails and I can't go any further, what should I do?
User avatar
By kmehranh
#63013 Set the Server:
Code: Select allAT+CWJAP="AccessPointName","Password"//Join to Access point
AT+CIPMUX=1//0 for single connection 1 for multiple connection.
AT+CIPSERVER=1,1336//Set as Server. 1 to open Server mode(0 to close). 1336 is port.
AT+CIFSR//Get IP address (192.168.43.151)

Set the Client:
Code: Select allAT+CWJAP="AccessPointName","Password"//Join to same Access point with the Server
AT+CIPMUX=1
AT+CIPSTART=1,"TCP","192.168.43.151",1336//Set up TCP or UDP connection, the 4 parameters are id, type, adress and port.     
AT+CIPSEND=1,7// Channel and number of bytes to send

After issuing all previous command you will receive "OK". But afterAT+CIPSENDyou will receive a ">" as response.

Code: Select allHello//send your Data

Message is sent successful.