http-request(esp8266-mcu-inet)

xod-dev/esp8266-mcu/http-request(esp8266-mcu-inet)

Performs an HTTP request and returns the response as a stream of characters Possible errors: — Can't open TCP connection — Can't send the data to the socket
http-request(esp8266-mcu-inet)
@/http-request(esp8266-mcu-inet)
Performs an HTTP request and returns the response as a stream of characters Possible errors: — Can't open TCP connection — Can't send the data to the socket
INET@/esp8266-mcu-inet
An internet connection
HOSTstring
The 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
The request body (optional)
INITpulse
Begin the request
http-request(esp8266-mcu-inet)
INET
HOST
PORT
METH
PATH
HDRS
BODY
INIT
CHAR
RCV
DONE
DONEpulse
Pulses when all response data is received and the connection is closed
RCVpulse
Pulses when a new response character is received
CHARbyte
The last received character from the response
To use the node in your project you should have the xod-dev/esp8266-mcu 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.