Post topics, source code that relate to the Arduino Platform

User avatar
By CaymanEss
#7371 Hi,

I'm using the ESP8266 wireless transceiver module with an Arduino UNO. The module is working as expected (I've tested my configuration with several sample projects I found on the net).

For ease of testing I've set things up so that I can communicate directly with the ESP8266 via the Serial Monitor window. Here are the commands I use to get things going:

Code: Select all// What firmware version is installed?
AT+GMR
0018000902-AI03

// Reset the device
AT+RST
OK
L(CÇäÿZNÿbc@ˆþD@JSÀ€àà
[Vendor:www.ai-thinker.com Version:0.9.2.4]
ready

// Set the data transmission mode (1 is "data mode")
AT+CWMODE=1
no change

// Connect the ESP8266 to my access point
AT+CWJAP="XXXX","XXXX"
OK

// What is the ESP8266's ip address?
AT+CIFSR
192.168.161.27

// Start a UDP connection to an ntp server (port 123)
AT+CIPSTART="UDP","time-a.timefreq.bldrdoc.gov",123
OK


Ok... what is the next step? How do I receive the data that gets sent back from the ntp server? I know I can use the "AT+CIPSEND" to send data but what command(s) do I use to receive data?

Any advice would be much appreciated!
-CS
User avatar
By CaymanEss
#7401
quantalume wrote:When data is received, it is automatically sent out the serial port. Each packet received produces an output that starts with "+IPD".


Thank you so much for your reply. Would you happen to know of any example code which does this? It seems to me that this would be a very common thing to do but I haven't seen any sample code that works.

Thank you in advance!