How do I make different kinds of web - request?

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
Pablo Oyarzo
Posts: 16
Joined: Tue Mar 14, 2017 12:55 am

How do I make different kinds of web - request?

Post by Pablo Oyarzo » Wed Mar 22, 2017 3:46 pm

On the documentation we have a goof example of an HTTP GET request. What If I have need to de an ECHOREQUEST?

User avatar
deshipu
Posts: 1388
Joined: Thu May 28, 2015 5:54 pm

Re: How do I make different kinds of web - request?

Post by deshipu » Wed Mar 22, 2017 5:07 pm

Pray tell what the heck is a ECHOREQUEST? There is no such thing in the HTTP protocol RFCs.


User avatar
deshipu
Posts: 1388
Joined: Thu May 28, 2015 5:54 pm

Re: How do I make different kinds of web - request?

Post by deshipu » Wed Mar 22, 2017 7:31 pm

That is ICMP, not HTTP. A completely different thing and three network levels away from HTTP.
As far as I can tell, ESP8266 doesn't support ICMP.

Pablo Oyarzo
Posts: 16
Joined: Tue Mar 14, 2017 12:55 am

Re: How do I make different kinds of web - request?

Post by Pablo Oyarzo » Thu Mar 23, 2017 3:11 pm

When it has the AT firmware it really does have a "ping command". My question would be, how is it possible then?

User avatar
deshipu
Posts: 1388
Joined: Thu May 28, 2015 5:54 pm

Re: How do I make different kinds of web - request?

Post by deshipu » Thu Mar 23, 2017 6:50 pm

Perhaps you can examine the firmware's source and see for yourself. My guess would be that they are doing a so-called "tcp ping".

User avatar
mcauser
Posts: 507
Joined: Mon Jun 15, 2015 8:03 am

Re: How do I make different kinds of web - request?

Post by mcauser » Thu Mar 23, 2017 10:26 pm

There are some Arduino Ping libraries for ESP8266, which seem to use ICMP echo requests.
https://github.com/akaJes/AsyncPing
https://github.com/dancol90/ESP8266Ping

Post Reply