http request over ethernet

burkulesomesh43
Posts: 132
Joined: Tue Aug 14, 2018 6:21 am
Location: India

http request over ethernet

Postby burkulesomesh43 » Thu Aug 16, 2018 7:24 am

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??
--
Somesh Burkule

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: http request over ethernet

Postby kolban » Thu Aug 16, 2018 4:10 pm

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".
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

User avatar
fly135
Posts: 606
Joined: Wed Jan 03, 2018 8:33 pm
Location: Orlando, FL

Re: http request over ethernet

Postby fly135 » Thu Aug 16, 2018 7:08 pm

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

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: http request over ethernet

Postby Ritesh » Fri Aug 17, 2018 1:30 am

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.
Regards,
Ritesh Prajapati

burkulesomesh43
Posts: 132
Joined: Tue Aug 14, 2018 6:21 am
Location: India

Re: http request over ethernet

Postby burkulesomesh43 » Sat Aug 18, 2018 1:35 pm

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.
--
Somesh Burkule

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: http request over ethernet

Postby Ritesh » Sat Aug 18, 2018 5:39 pm

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.
Regards,
Ritesh Prajapati

burkulesomesh43
Posts: 132
Joined: Tue Aug 14, 2018 6:21 am
Location: India

Re: http request over ethernet

Postby burkulesomesh43 » Mon Aug 20, 2018 5:46 am

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.
--
Somesh Burkule

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: http request over ethernet

Postby Ritesh » Mon Aug 20, 2018 4:32 pm

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.
Regards,
Ritesh Prajapati

Who is online

Users browsing this forum: Majestic-12 [Bot] and 111 guests