If I do
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.
how to get UDP remote IP and port for UDP mode 2?
Re: how to get UDP remote IP and port for UDP mode 2?
Postby doughboy » Fri Mar 20, 2015 9:50 am
I see the remote ip can be found using CIPSTATUS
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
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
Who is online
Users browsing this forum: No registered users and 2 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.