ESP8266 Developer Zone The Official ESP8266 Forum 2016-11-09T19:09:48+08:00 https://bbs.espressif.com:443/feed.php?f=16&t=74 2016-11-09T19:09:48+08:00 2016-11-09T19:09:48+08:00 https://bbs.espressif.com:443/viewtopic.php?t=74&p=10480#p10480 <![CDATA[Re: UDP : AT+CIPSTART ./. AT+CIPSERVER]]>
the 8266 socket using AT commands seems to be unable to receive UDP broadcast datagrams.
The command:
AT+CIPSTART="UDP","0",0,10000,2
does not setup the module to receive broadcast datagrams.

+IPD,14:broadcast test
OK
is impossible to achieve.

Someone can help?

Statistics: Posted by lucio.macellari.mac — Wed Nov 09, 2016 7:09 pm


]]>
2014-12-28T13:19:18+08:00 2014-12-28T13:19:18+08:00 https://bbs.espressif.com:443/viewtopic.php?t=74&p=381#p381 <![CDATA[Re: UDP : AT+CIPSTART ./. AT+CIPSERVER]]>
To the question, actually , the server in udp just means to register a receive port.

So in AT+ project , the process is :

Code:

AT+CWMODE=3//or other mode
OK
AT+CWJAP="AP_SSID","AP_PASSWORD" //connect to ap or work as a softap
OK
AT+CIPMUX=0 //single link, or multi
OK
AT+CIPSTART="UDP","0",0,10000,2 //set udp local port , remote ip and port is irrespective until send data...
0,CONNECT
OK


Then just send data via udp port you set ,(10000 in this case)

Code:

+IPD,14:broadcast test
OK

+IPD,8:test udp
OK

Statistics: Posted by costaud — Sun Dec 28, 2014 1:19 pm


]]>
2014-12-09T12:09:55+08:00 2014-12-09T12:09:55+08:00 https://bbs.espressif.com:443/viewtopic.php?t=74&p=259#p259 <![CDATA[UDP : AT+CIPSTART ./. AT+CIPSERVER]]> i try to config one ESP8266ex as a UDP "server" but i think this is only possible as client to send UDP msg but not receive.
is there a choice with AT+CIPSTART and the UDP register run as a UDP device for incomming UDP msg?
perhabs this will be a nice doing in UDP as a "Server" / UDP device.

why:
with UDP broadcast message so all UDP devices can response the sending command with one command .. and at same time.
example
a remote RST
a remote Cloud update
a remote Home Automation example "Jalousie" close..open
a remote Home Automation example "Light out, Panik Light on.. ect ..

thank you for your instruction.
best wishes
rudi ;-)

Statistics: Posted by rudi — Tue Dec 09, 2014 12:09 pm


]]>