Page 1 of 1
http request over ethernet
Posted: Thu Aug 16, 2018 7:24 am
by burkulesomesh43
Hi all,
I want to send data using http server.
the http_request example is given in esp idf over wifi.
can we use that example over ethernet??
Re: http request over ethernet
Posted: Thu Aug 16, 2018 4:10 pm
by kolban
Howdy my friend,
Can you provide the link to the sample you are looking at?
Can I confirm that you want to send an HTTP request to an HTTP Server as opposed to an HTTP server running on the ESP32 sending a request somewhere else?
At the highest level, the networking subsystem at the low levels takes care of physical communication (WiFi or Ethernet) while the higher level protocols (TCP/IP) "just work" over those physical mediums. As such, any applications written to the higher level APIs such as "sockets" should "just work".
Re: http request over ethernet
Posted: Thu Aug 16, 2018 7:08 pm
by fly135
burkulesomesh43 wrote:Hi all,
I want to send data using http server.
the http_request example is given in esp idf over wifi.
can we use that example over ethernet??
My guess would be that wifi vs internet is transparent to the http server code.
So the question would be... do you know how to start up the ethernet? Do you have a board with ethernet?
I don't have an ESP32 with ethernet and haven't seen one. But I'm guessing that if you can get the ethernet example in the IDF to start and give you an IP address, then any network code like the HTTP server will just automagically work.
John A
Re: http request over ethernet
Posted: Fri Aug 17, 2018 1:30 am
by Ritesh
burkulesomesh43 wrote:Hi all,
I want to send data using http server.
the http_request example is given in esp idf over wifi.
can we use that example over ethernet??
Yes. You can use that example over Ethernet as well. You just need to enable Ethernet and init required configuration to enable it.
Then, You can get external connectivity like WiFi.
Re: http request over ethernet
Posted: Sat Aug 18, 2018 1:35 pm
by burkulesomesh43
Ritesh wrote:burkulesomesh43 wrote:Hi all,
I want to send data using http server.
the http_request example is given in esp idf over wifi.
can we use that example over ethernet??
Yes. You can use that example over Ethernet as well. You just need to enable Ethernet and init required configuration to enable it.
Then, You can get external connectivity like WiFi.
Ok thank you.
Re: http request over ethernet
Posted: Sat Aug 18, 2018 5:39 pm
by Ritesh
burkulesomesh43 wrote:Ritesh wrote:burkulesomesh43 wrote:Hi all,
I want to send data using http server.
the http_request example is given in esp idf over wifi.
can we use that example over ethernet??
Yes. You can use that example over Ethernet as well. You just need to enable Ethernet and init required configuration to enable it.
Then, You can get external connectivity like WiFi.
Ok thank you.
Let me know if need any help regarding that.
Re: http request over ethernet
Posted: Mon Aug 20, 2018 5:46 am
by burkulesomesh43
Ritesh wrote:burkulesomesh43 wrote:Ritesh wrote:
Yes. You can use that example over Ethernet as well. You just need to enable Ethernet and init required configuration to enable it.
Then, You can get external connectivity like WiFi.
Ok thank you.
Let me know if need any help regarding that.
Nop. thank you.
My code is working now properly. I am sending data to http server over ethernet.
Re: http request over ethernet
Posted: Mon Aug 20, 2018 4:32 pm
by Ritesh
burkulesomesh43 wrote:Ritesh wrote:burkulesomesh43 wrote:
Ok thank you.
Let me know if need any help regarding that.
Nop. thank you.
My code is working now properly. I am sending data to http server over ethernet.
Great. Good to share sample code for others who want to test same like you have tested if not confidential.