-->
Page 1 of 1

Sample PING from SDK v0.9.4

PostPosted: Sun Jan 11, 2015 4:44 am
by amatron
My timid attempt to use ping from the SDK v0.9.4 on Eclipse IDE:

esp8266_ping.zip

Re: Sample PING from SDK v0.9.4

PostPosted: Mon Jan 12, 2015 9:49 pm
by pvvx
amatron wrote:My timid attempt to use ping from the SDK v0.9.4 on Eclipse IDE:

esp8266_ping.zip

Code: Select all#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);
}

Uart1 tx:
recv 192.168.4.2: byte = 32, time = 23 ms, seq = 1
recv 192.168.4.2: byte = 32, time = 3 ms, seq = 2
recv 192.168.4.2: byte = 32, time = 3 ms, seq = 3
ping 3, timeout 0, total payload 96 bytes, 2939 ms

Ping:8.8.8.8

recv 8.8.8.8: byte = 32, time = 32 ms, seq = 1
recv 8.8.8.8: byte = 32, time = 6 ms, seq = 2
recv 8.8.8.8: byte = 32, time = 8 ms, seq = 3
ping 3, timeout 0, total payload 96 bytes, 2982 ms

Re: Sample PING from SDK v0.9.4

PostPosted: Sat Jan 17, 2015 7:57 pm
by thorvald
When I tried to compile your solution it failed with an error for system_relative_time.

How did you compile and build the firmware ?

Is it possible for you to export the entire eclipse project (Including any defines you magt have set up?)

Best regards
Thorvald