Skip to content

Commit 5aadbcc

Browse files
author
MA
committed
Library name is updated from ArduinoFetch to Fetch because Arduino doesn't support 3rd party libraries to have names that start with Arduino.
1 parent 015a133 commit 5aadbcc

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Arduino Fetch
2-
Arduino fetch is a high level HTTP Request Library that gives you a javascript fetch like API.
1+
# Fetch for Arduino
2+
fetch is a high level HTTP Request Library that gives you a javascript fetch like API.
33

44
```js
55
ResponseOptions options;
@@ -23,7 +23,7 @@ Response response = fetch("https://api.grandeur.tech/auth/login/?apiKey=grandeur
2323
# Include
2424

2525
```cpp
26-
#include <ArduinoFetch.h>
26+
#include <Fetch.h>
2727
```
2828

2929
# Usage

examples/get/get.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "recipes/WiFi.h"
2-
#include "ArduinoFetch.h"
2+
#include "Fetch.h"
33

44
#define SSID YourWiFiSSID
55
#define PASSPHRASE YourWiFiPassphrase

examples/post/post.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "recipes/WiFi.h"
2-
#include "ArduinoFetch.h"
2+
#include "Fetch.h"
33

44
#define SSID YourWiFiSSID
55
#define PASSPHRASE YourWiFiPassphrase

library.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name=ArduinoFetch
1+
name=Fetch
22
version=0.0.1
33
author=Muhammad Abdullah
44
maintainer=Muhammad Abdullah <[email protected]>
@@ -7,4 +7,4 @@ paragraph=Gives you a Javascript's fetch like API to make GET, POST, HEAD, PUT,
77
category=Communication
88
url=https://github.com/instanceofMA/arduino-fetch
99
architectures=*
10-
includes=ArduinoFetch.h
10+
includes=Fetch.h

src/ArduinoFetch.cpp renamed to src/Fetch.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
#include "ArduinoFetch.h"
1+
#include "Fetch.h"
22
#include <WiFiClientSecure.h>
33

4-
// ArduinoFetch arduinoFetch;
4+
// Fetch fetch;
55

66
Response fetch(const char* url, RequestOptions options) {
77
// Parsing URL.
@@ -97,7 +97,7 @@ String operator+(String str, Body body) {
9797
return str + body.text();
9898
}
9999

100-
// ArduinoFetch::ArduinoFetch(const char* url, RequestOptions options) :
100+
// Fetch::Fetch(const char* url, RequestOptions options) :
101101
// _url(url), _options(options) {}
102102

103103
Response::Response(): ok(false), status(200), statusText("OK"),

src/ArduinoFetch.h renamed to src/Fetch.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,13 @@ class RequestOptions {
8484
RequestOptions();
8585
};
8686

87-
// class ArduinoFetch {
87+
// class Fetch {
8888
// private:
8989
// const char* _url;
9090
// RequestOptions _options;
9191
// public:
92-
// ArduinoFetch();
93-
// ArduinoFetch(const char* url, RequestOptions options);
92+
// Fetch();
93+
// Fetch(const char* url, RequestOptions options);
9494
// };
9595

9696
Response fetch(const char* url, RequestOptions options);

0 commit comments

Comments
 (0)