ESP8266 Developer Zone The Official ESP8266 Forum 2015-12-26T21:12:15+08:00 https://bbs.espressif.com:443/feed.php?f=16&t=1247 2015-12-26T21:12:15+08:00 2015-12-26T21:12:15+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1247&p=5160#p5160 <![CDATA[Re: AT+PING Command]]> +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.

Statistics: Posted by tilz0R — Sat Dec 26, 2015 9:12 pm


]]>
2015-10-21T14:43:01+08:00 2015-10-21T14:43:01+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1247&p=4206#p4206 <![CDATA[Re: AT+PING Command]]>
We will update our documentation.

The unit of ping time is "ms".

Thanks for your interest in ESP8266 !

Statistics: Posted by ESP_Faye — Wed Oct 21, 2015 2:43 pm


]]>
2015-10-20T20:25:31+08:00 2015-10-20T20:25:31+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1247&p=4187#p4187 <![CDATA[Re: AT+PING Command]]> Statistics: Posted by Veeda — Tue Oct 20, 2015 8:25 pm


]]>
2015-10-19T21:58:14+08:00 2015-10-19T21:58:14+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1247&p=4163#p4163 <![CDATA[AT+PING Command]]>
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

Statistics: Posted by Veeda — Mon Oct 19, 2015 9:58 pm


]]>