Add Library
This commit is contained in:
parent
e365b9dbd9
commit
3c47103b39
318 changed files with 56465 additions and 0 deletions
20
libraries/ESP32_Rest_Client/examples/SimpleGet/simpleget.ino
Normal file
20
libraries/ESP32_Rest_Client/examples/SimpleGet/simpleget.ino
Normal file
|
@ -0,0 +1,20 @@
|
|||
#include <RestClient.h>
|
||||
|
||||
RestClient client = RestClient("google.es", 443);
|
||||
|
||||
void setup()
|
||||
{
|
||||
Serial.begin(9600);
|
||||
delay(1000);
|
||||
|
||||
client.begin("ssid", "password");
|
||||
|
||||
int statusCode = client.get("/");
|
||||
Serial.print("Status code from server: ");
|
||||
Serial.println(statusCode);
|
||||
}
|
||||
|
||||
void loop()
|
||||
{
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue