ESP8266 Developer Zone The Official ESP8266 Forum 2015-04-27T10:56:26+08:00 https://bbs.espressif.com:443/feed.php?f=66&t=403 2015-04-27T10:56:26+08:00 2015-04-27T10:56:26+08:00 https://bbs.espressif.com:443/viewtopic.php?t=403&p=1532#p1532 <![CDATA[Re: +IPD difference between UDP & TCP]]>
Thanks for your valuable advice,we will revise UDP to be same as TCP .

Statistics: Posted by ESP_Faye — Mon Apr 27, 2015 10:56 am


]]>
2015-04-27T00:15:15+08:00 2015-04-27T00:15:15+08:00 https://bbs.espressif.com:443/viewtopic.php?t=403&p=1517#p1517 <![CDATA[+IPD difference between UDP & TCP]]>
In UDP the raw data is followed by an "OK" in TCP it is not. I've just updated from AT v20 and in that version both TCP & UDP issued an OK after the raw data. There was some discussion here viewtopic.php?f=16&t=221 about the removal of the (unneccessary) ok on TCP, but it appears to have been overlooked on UDP. It would be best for them to be both the same.

Thanks
D Tricker


An example follows:

AT+GMR

AT version:0.23.0.0(Apr 24 2015 21:11:01)
SDK version:1.0.1
compile time:Apr 24 2015 21:19:31

OK
AT+CIFSR

+CIFSR:STAIP,"192.168.1.84"
+CIFSR:STAMAC,"18:fe:34:9c:65:bd"

OK

AT+CIPSTART="UDP","192.168.1.71",100,100,0

0,CONNECT

OK

+IPD,8:incoming
OK <<<<<<<<<<<<<< Extra LF OK LF on UDP packet containing "incoming"


......
AT+CIPMUX=1


OK
AT+CIPSERVER=1,100


OK
0,CONNECT

+IPD,0,8:incoming0,CLOSED <<<<<<<<<<<<<< Nothing extra on TCP
0,CONNECT

+IPD,0,8:incoming1,CONNECT

+IPD,1,8:incoming0,CLOSED
0,CONNECT

+IPD,0,8:incoming1,CLOSED
0,CLOSED

Statistics: Posted by trickedj — Mon Apr 27, 2015 12:15 am


]]>