Kruger wrote:With the latest versions of the AT commands (from espressif GIT), UDP listening is disabled. You may want to stick with the older versions if you need that.
Hi,
Please try the latest AT firmware http://bbs.espressif.com/viewtopic.php?f=5&t=154
refer to documents in folder "document"
Create a UDP transmission, for example, id is 4.Code: Select allAT+CIPSTART=4,"UDP","192.168.101.110",8080,1112,0
Response:4,CONNECT OK
Note:
"192.168.101.110",8080 here is the remote ip and port of UDP transmission which create on PC in step 4.
1112 is the local port of ESP8266, user-define, if user does not define it, it will be a random value;
0 means destination peer entity of UDP will not change. For example, in this case, if another PC also creates a UDP entity and sends data to ESP8266 port 1112, ESP8266 can receive these data, but when we send data with command “AT+CIPSEND=4,X”, it will still be sent to the first PC. If this parameter is not 0, it will send to the new PC.
I was able to get the module to send and receive UDP data using the above AT command. Didn't have any success testing the last parameter though, as the ESP always to the specified IP (AT+CIPSEND), even if the UDP data came from another destination.
Sorry that I can't really understand what's your question。。 Could you offer more information,like your test steps ,UART output log ?
It seems that you want to change the destination of UDP transmission ,if it‘s that,you should set the last parameter not to be 0 。。。
Example,notice the last parameter:
AT+CIPSTART=4,"UDP","192.168.101.110",8080,1112,2
Thanks for your interest in ESP8266 !