Hi, connecting two ESP8266's. Both setup +CWMODE_DEF=3
Question - How do one send data between two in +CWMODE=3. Can it be selected to +CIPSENDEX over either STATION connection or AP SERVER connection
Can +CIPSENDEX data from ESP_A to ESP_B, but ESP_B can not send data back as I think it creates UDP socket for its own AP
- Example of fail below.
(ESP_B connect to ESP_A AP)
ESP_A
+CWMODE_DEF=3
+CWSAP_DEF="A_SSID","A_PW",6,4 (ESP_B successful connect and get IP 192.168.4.2)
+CIMUX=0
+CIPSTART="UDP","192.168.4.2",5001,5001,0 (Connect OK)
+CIPSENDEX=5 >12345\0 (SEND OK and ESP_B receive data)
ESP_A
+CWMODE_DEF=3
+CWJAP_DEF="A_SSID","A_PW" (ESP_B succesfull connect and get IP 192.168.4.2)
+CIMUX=0
+CIPSTART="UDP","192.168.4.1",5001,5001,0 (Connect OK)
+CIPSENDEX=5 >12345\0 (SEND FAIL)
Please assist
Can not send data between two +CWMODE=3 ESP8266
Re: Can not send data between two +CWMODE=3 ESP8266
Postby Matt_SA » Thu Jul 16, 2015 10:56 am
RESOLVED!!
Both softAP of ESP_A and ESP_B had the same IP.
Thank you.
Both softAP of ESP_A and ESP_B had the same IP.
Thank you.
Who is online
Users browsing this forum: No registered users and 188 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.