Sample PING from SDK v0.9.4
Posted: Sun Jan 11, 2015 4:44 am
My timid attempt to use ping from the SDK v0.9.4 on Eclipse IDE:
-->
Open Community Forum for ESP8266, Come share Arduino and IoT (Internet of Things)
https://www.esp8266.com/
amatron wrote:My timid attempt to use ping from the SDK v0.9.4 on Eclipse IDE:
#include "lwip/app/ping.h"
struct ping_option pingopt;
void ping(uint32 ip)
{
pingopt.ip=ip;
pingopt.count = 3;
pingopt.recv_function=NULL;
pingopt.sent_function=NULL;
ping_start(&pingopt);
}