ESP8266 Developer Zone The Official ESP8266 Forum 2015-03-20T09:50:56+08:00 https://bbs.espressif.com:443/feed.php?f=16&t=283 2015-03-20T09:50:56+08:00 2015-03-20T09:50:56+08:00 https://bbs.espressif.com:443/viewtopic.php?t=283&p=1093#p1093 <![CDATA[Re: how to get UDP remote IP and port for UDP mode 2?]]>
AT+CIPSTART=1,"UDP","0.0.0.0",0,55055,2
1,CONNECT
OK
AT+CIPSTATUS
STATUS:4
+CIPSTATUS:1,"UDP","0.0.0.0",38792,55055,0
OK
+IPD,1,4:test
OK
AT+CIPSTATUS
STATUS:4
+CIPSTATUS:1,"UDP","192.168.1.16",55056,55055,0
OK
AT+CIPSEND=1,5
OK
> abc

+IPD,1,3:ack
OK
SEND OK

Statistics: Posted by doughboy — Fri Mar 20, 2015 9:50 am


]]>
2015-03-20T04:19:14+08:00 2015-03-20T04:19:14+08:00 https://bbs.espressif.com:443/viewtopic.php?t=283&p=1090#p1090 <![CDATA[how to get UDP remote IP and port for UDP mode 2?]]> AT+CIPSTART=1,"UDP","192.168.1.25",1000,1001,2

and I receive UDP packet from another remote ip, how do I determine the remote ip and port of the sender?
I understand in mode 2, CIPSEND will send the data to the remote ip where the last incoming packet came from.

Thanks.

Statistics: Posted by doughboy — Fri Mar 20, 2015 4:19 am


]]>