Archives

ESP8266 NodeMCU Module – HTTP

 

 


ESP8266 NodeMCU HTTP Module functions

http.delete() Executes a HTTP DELETE request.
http.get() Executes a HTTP GET request.
http.post() Executes a HTTP POST request.
http.put() Executes a HTTP PUT request.
http.request() Execute a custom HTTP request for any HTTP method.

 

http.delete()

  • Executes a HTTP DELETE request. Note that concurrent requests are not supported.
  • Syntax : http.delete(url, headers, body, callback
  • Parameters
    • url The URL to fetch, including the http:// or https:// prefix
    • headers Optional additional headers to append, including \r\n; may be nil
    • body The body to post; must already be encoded in the appropriate format, but may be empty
    • callback The callback function to be invoked when the response has been received or an error occurred; it is invoked with the arguments status_code, body and headers. In case of an error status_code is set to -1.
  • Returns : nil

 

 


HTTP Get Example

  • Read your thing-speak text file from below code

Code

 


 

HTTP Post Example

Post Data to thinkspeak website

Code

 

Post Data to aruneworld Website

code

 

 

 


 

ESP8266 Arduino-core Tutorial – HTTP Post Data to Web Page

Note I was tested its code is working well , But dont have time to documentation, any further doubts please contact in whatsapp +91-8300026060 or mail to [email protected]


FAQ

if you have following Questions and most of the reaped and same meaning questions, then this below contents should help for you

  • How send data to web page using ESP8266?
  • ESP8266 send data to website?
  • Send ESP8266 Data to Your Webpage – no AT Commands
  • Arduino-Esp8266-Post-Data-to-Website
  • ESP8266: HTTP POST Requests
  • Posting and getting data from ESP on Apache WebServer
  • How to Send Data from Arduino to Webpage using WiFi?
  • How to send data to a server using ESP8266 with Arduino?

 


Required

  • ESP8266 Any Module (Used NodeMCU Dev Kit Version 1.0)
  • Arduino IDE with ESP8266 Platform
  • Web Sever (Shared, Lunux, Windows or Own Server like with any hosting provides : Amazon, GoDaddy, GlobeHost, BlueHost, HostingRaja and etc)
  • Cpanel Login Access and update index file contend

 

Cpanel index.php  code

 

 

ESP8266 Arduino-Core Code

 


 

if you have any queries call us +918300026060 or WhatsApp Dismiss

0

Your Cart

%d bloggers like this: