Skip to content
This repository has been archived by the owner on Jun 10, 2022. It is now read-only.

farajfarook/esp-restclient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

esp-restclient

ESP8266 REST Client

Supporting Protocols

  • HTTP
  • HTTPS

Supporting Methods

  • GET
  • POST
  • PUT
  • PATCH
  • DELETE

This client uses BearSSL Secure wifi client for the HTTPS connections.

Usage HTTP

#include <RestClient.h>
...
void setup()
{
  // Connect to WIFI
  ...
  
  // Create a REST Client for http://reqres.in/api/
  RestClient client("reqres.in", 80, "http", "/api/");
  String response;
  client.get("users/2", &response);
  Serial.println(response);
}

void loop()
{
}

Usage HTTPS - with all new BearSSL Secure client

#include <RestClient.h>
...
void setup()
{
  // Connect to WIFI
  ...
  
  // Create a REST Client for https://reqres.in/api/
  RestClient client("reqres.in", 443, "https", "/api/");
  String response;
  client.get("users/2", &response);
  Serial.println(response);
}

void loop()
{
}

About

Arduino ESP8266 RESTful Client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages