ESP32 web server initiating HTTP requests to external Rest API?
Posted: Sat Feb 04, 2023 1:09 pm
Hello, i was wondering if the following is possible...
1) Can an ESP32 running as a web server initiate/make HTTP requests to an external Rest API ?
2) Do i need to set it up both as a server and a client at the same time or can the ESP-IDF Server API initiate/make requests also?
3) Will the traffic for both incoming and outgoing requests be handled (for port forwarding reasons) by the same port ?
As an example think of an ESP32 used in automation with its own WEB UI making HTTP Requests to Shelly products polling sensors or controlling actuators.
Thanks in advance.
1) Can an ESP32 running as a web server initiate/make HTTP requests to an external Rest API ?
2) Do i need to set it up both as a server and a client at the same time or can the ESP-IDF Server API initiate/make requests also?
3) Will the traffic for both incoming and outgoing requests be handled (for port forwarding reasons) by the same port ?
As an example think of an ESP32 used in automation with its own WEB UI making HTTP Requests to Shelly products polling sensors or controlling actuators.
Thanks in advance.