Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By Tawhiz20
#40442 Hi,

Does anyone have some example which i can use in my Arduino IDE to have my ESP8266 ping a certain static IP-adress on my home-network?
(I would like the ESP to look for my phone on an interval)

THNX
User avatar
By quasidor-dux
#40453 That's an interesting question. I suppose you could open a socket and send ICMP echo requests to the phone IP address. That assumes your phone can send echo replies. I've never tried it but it would be a fun exercise.

Read this white paper http://images.globalknowledge.com/wwwim ... s_Ping.pdf

It is a good description of how ping works.
User avatar
By Tawhiz20
#40844 Surely there must be something like the
AT+PING="192.168.1.1"
AT+PING="www.baidu.com"
commands (from the at-command set) but callable from C (Arduino- IDE).. does anyone have a clue?

THNX