http-request(esp32-inet)

jesuso/esp32-wifi/http-request(esp32-inet)

Performs an HTTP request and returns the response as a stream of characters.
http-request(esp32-inet)
@/http-request(esp32-inet)
Performs an HTTP request and returns the response as a stream of characters.
INET@/esp32-inet
HOSTstring
A domain name of the server
PORTnumber
A port number on which the server is listening. In most configurations, HTTP web servers listen at port 80
METHstring
An HTTP method (e.g., GET, POST, PUT, or DELETE)
PATHstring
A path to the requested resource
HDRSstring
Additional headers
BODYstring
Additional headers
INITpulse
Begin the request
http-request(esp32-inet)
INET
HOST
PORT
METH
PATH
HDRS
BODY
INIT
CHAR
RCV
END
ENDpulse
Pulses when all response data is received and the connection is closed
RCVpulse
CHARbyte
The last received character from the response
To use the node in your project you should have the jesuso/esp32-wifi library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.