A place users can post their projects. If you have a small project and would like your own dedicated place to post and have others chat about it then this is your spot.

User avatar
By amatron
#6970 My timid attempt to use ping from the SDK v0.9.4 on Eclipse IDE:

esp8266_ping.zip
You do not have the required permissions to view the files attached to this post.
User avatar
By pvvx
#7155
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
User avatar
By thorvald
#7562 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