How do I UDP receive?

jonshouse
Posts: 5
Joined: Mon Dec 08, 2014 12:10 am

How do I UDP receive?

Postby jonshouse » Sat Jul 11, 2015 2:54 am

I am using the Beta1 AT interpreter, I tried flashing beta2 but the board just sits with the blue LED on and does not work.

How do I UDP receive ?

The AT+CIPSERVER commands seems to ignore UDP data. My product requires on UDP receive as it is a core part of the protocol.

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: How do I UDP receive?

Postby ESP_Faye » Fri Jul 31, 2015 11:51 am

Hi,

Please download esp_iot_sdk_v1.2.0, and unzip it.

In folder "document", there is a documentation "4B-ESP8266__AT Command Examples", it shows how to do UDP transmission.

Thanks for your interest in Espressif Systems and ESP8266 !

User avatar
rudi
Posts: 197
Joined: Fri Oct 24, 2014 7:55 pm

Re: How do I UDP receive?

Postby rudi » Mon Aug 10, 2015 7:33 pm

jonshouse wrote:I am using the Beta1 AT interpreter, I tried flashing beta2 but the board just sits with the blue LED on and does not work.

How do I UDP receive ?

The AT+CIPSERVER commands seems to ignore UDP data. My product requires on UDP receive as it is a core part of the protocol.




you need no 'server' for UDP, udp works without response from a 'server'

try this:

AT+CIPSTART="UDP","0",0,1025,2

now - the esp is listening at port 1025 at the ip
( AP or Station or AP + Station - exactly what you start with AT+CWMODE..

send a UDP message to the ip of the esp8266
example with delphi & udp client from indy

IdUDPClient1.send('28.0.0.0', 1025, hello world');

or with an other esp that connect with AT command the listening esp.
desination is: IP of the esp, Port of esp ( in this example 1025 )

best wishes
rudi ;-)

best example in own src, try this:

'listening'
viewtopic.php?f=31&t=230

'sending'
viewtopic.php?f=31&t=440

-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

Who is online

Users browsing this forum: No registered users and 2 guests