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??
http request over ethernet
-
- Posts: 132
- Joined: Tue Aug 14, 2018 6:21 am
- Location: India
http request over ethernet
--
Somesh Burkule
Somesh Burkule
Re: http request over ethernet
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".
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
Re: http request over ethernet
My guess would be that wifi vs internet is transparent to the http server code.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??
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
Yes. You can use that example over Ethernet as well. You just need to enable Ethernet and init required configuration to enable it.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??
Then, You can get external connectivity like WiFi.
Regards,
Ritesh Prajapati
Ritesh Prajapati
-
- Posts: 132
- Joined: Tue Aug 14, 2018 6:21 am
- Location: India
Re: http request over ethernet
Ok thank you.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.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??
Then, You can get external connectivity like WiFi.
--
Somesh Burkule
Somesh Burkule
Re: http request over ethernet
Let me know if need any help regarding that.burkulesomesh43 wrote:Ok thank you.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.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??
Then, You can get external connectivity like WiFi.
Regards,
Ritesh Prajapati
Ritesh Prajapati
-
- Posts: 132
- Joined: Tue Aug 14, 2018 6:21 am
- Location: India
Re: http request over ethernet
Nop. thank you.Ritesh wrote:Let me know if need any help regarding that.burkulesomesh43 wrote:Ok thank you.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.
My code is working now properly. I am sending data to http server over ethernet.
--
Somesh Burkule
Somesh Burkule
Re: http request over ethernet
Great. Good to share sample code for others who want to test same like you have tested if not confidential.burkulesomesh43 wrote:Nop. thank you.Ritesh wrote:Let me know if need any help regarding that.burkulesomesh43 wrote: Ok thank you.
My code is working now properly. I am sending data to http server over ethernet.
Regards,
Ritesh Prajapati
Ritesh Prajapati
Who is online
Users browsing this forum: Bing [Bot] and 99 guests