AT+PING Command

Veeda
Posts: 8
Joined: Mon Jul 06, 2015 2:02 am

AT+PING Command

Postby Veeda » Mon Oct 19, 2015 9:58 pm

Hello,

How is AT+PING=<ip> implemented? I could not find the implementation on github.

Also, is the time reported by ping in microseconds? I would assume so.

Thank you

Veeda
Posts: 8
Joined: Mon Jul 06, 2015 2:02 am

Re: AT+PING Command

Postby Veeda » Tue Oct 20, 2015 8:25 pm

Anyone know what units the time reported by ping is?

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

Re: AT+PING Command

Postby ESP_Faye » Wed Oct 21, 2015 2:43 pm

Hi,

We will update our documentation.

The unit of ping time is "ms".

Thanks for your interest in ESP8266 !

tilz0R
Posts: 38
Joined: Sat Dec 26, 2015 8:36 pm
Contact:

Re: AT+PING Command

Postby tilz0R » Sat Dec 26, 2015 9:12 pm

AT+PING command should return +PING=70 instead of +70, because this +70 is not "unique" string like "+PING" would be at start and that makes hard code response without polling mode.

If you do it in code like this:

1. send AT+PING..
2. Wait + sign and grab ms value
3. return from function according to "OK" or "ERROR"

then this can block your execution on target MCU because this can take time.

If you do like that:

1. send AT+PING..
2. Return from function
3. Do other job and periodically check response
4. If received string starts with "+PING", parse number and call user event function.

Hope you understand that.

Who is online

Users browsing this forum: No registered users and 2 guests