Coder Social home page Coder Social logo

arduino-fetch's Introduction

Fetch for Arduino

fetch is a high level HTTP Request Library that gives you a javascript fetch like API. It also supports making asynchronous/non-blocking requests, check out this example and others.

RequestOptions options;
options.method = "POST";
// options.fingerprint = "DC 78 3C 09 3A 78 E3 A0 BA A9 C5 4F 7A A0 87 6F 89 01 71 4C";
options.caCert = "";
options.headers["Content-Type"] = "application/json";
options.body = "{\"email\": \"[email protected]\", \"password\": \"test:80\"}";

/** In JSON, this would look like:
 * options = {
 *      method: "POST",
 *      fingerprint: "DC 78 3C 09 3A 78 E3 A0 BA A9 C5 4F 7A A0 87 6F 89 01 71 4C",
 *      headers: { contentType: "application/json" },
 *      body: "{\"email\": \"[email protected]\", \"password\": \"test:80\"}",
 * }
 */

Response response = fetch("https://api.grandeur.tech/auth/login/?apiKey=grandeurkywxmoy914080rxf9dh05n7e", options);

Here's the link to the release article on instructables.

Installation

You can install fetch in your Arduino Project by:

  1. Installing from the Arduino Library Manager directly.
  2. Download this repo as a ZIP and import it into your project.

Include

#include <Fetch.h>

Usage

Response response = fetch(const char* url, RequestOptions options);
FetchClient client = fetch(const char* url, RequestOptions options, OnResponseCallback callback);

Request Options

RequestOptions options;

/**
    {
        method: "GET" || "POST" || "HEAD" || "PUT" || "DELETE",
        headers: { "Content-Type": "application/x-www-form-urlencoded", "Content-Length": Automatic, "Host: FromURL, "User-Agent": "arduino-fetch", "Cookie": "", "Accept": "* /*", "Connection": "close", "Transfer-Encoding": "chunked" },
        body: "",
        redirect: "follow" || "manual", "error",
        follow: Integer,

    }
*/

RequestOptions options;
options.method = "POST";
options.headers["Content-Type"] = "application/json";
options.headers["Connection"] = "keep-alive";
options.body = "email=EMAIL&password=PASSWORD";

Request Body

String body;
// application/x-www-form-urlencoded
body = "email=EMAIL&password=PASSWORD";
// application/json
body = "{\"email\":\"EMAIL\", \"password\"=\"PASSWORD\"}";

Request Headers

Headers headers;

headers["Content-Type"] = "application/json";
headers["Connection"] = "keep-alive";
headers["Cookie"] = "abc=def,ghi=jkl"; // Not yet supported.

Response

Response response;

String data = response.text();
JSONBody data = response.json(); // Not yet supported.
const Blob = response.blob(); // Not yet supported.
const FormData = response.formData(); // Not yet supported.
unsigned int[] array = response.arrayBuffer(); // Not yet supported.

bool ok = response.ok;
int status = response.status;
String statusText = response.statusText;
bool redirected = response.redirected; // Not yet supported.
String type = response.type; // Not yet supported.
String response.headers["content-type"];
Headers headers = response.headers.raw(); // Not yet supported
const char* contentTypeHeader = headers["content-type"]; // Not yet supported.

arduino-fetch's People

Contributors

instanceofma avatar nicolasff avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

arduino-fetch's Issues

LCBUrl need to be updated

Please consider to update LCBUrl lib or unlink from your code in a way that can be installed and maintained separately.

Current version is not working with the new restrictions on Espressif ESP32 boards

Thanks

Improper version number in library.properties for the v0.1.2 release files

The archives available from the releases page for v0.1.2 have an incorrect value for the version field in the library.properties file.

The value contained is '0.1.1' where it should be '0.1.2'.

I'm ignorant as to how packages are made available in the 'Arduino IDE Library Manager', but I have to wonder if this error in library.properties is the reason why v0.1.2 is unavailable from the library manager?

cannot compile on platformio

Dear Muhammad Abdullah,

cannot compile on platformio

from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src/ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.cpp:23:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/debug.h:12: note: it was later defined here
12 | #define DEBUGV(...)

|
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src/LEAmDNS.h:119,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src/ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.cpp:23:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h: In member function 'size_t UdpContext::read(char*, size_t)':
Indexing .pio\build\d1_mini\libce4\libESP8266WiFi.a
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:331:9: error: 'DEBUGV' was not declared in this scope
331 | DEBUGV(":urd %d, %d, %d\r\n", size, _rx_buf_size, _rx_buf_offset);
| ^~~~~~
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Stream.h:25,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Udp.h:38,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/WiFiUdp.h:25,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:116,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS_Control.cpp:41:
.pio\libdeps\d1_mini\Fetch\src/debug.h:10:1: warning: multi-line comment [-Wcomment]
Compiling .pio\build\d1_mini\lib4b5\ESP8266mDNS\LEAmDNS_Helpers.cpp.o
10 | //#define DEBUG_FETCH(format, args...)
| ^
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:331:9: note: the macro 'DEBUGV' had not yet been defined
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Arduino.h:309,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/WiFiClient.h:25,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/ESP8266WiFi.h:39,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src/LEAmDNS.h:124,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src/ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.cpp:23:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/debug.h:12: note: it was later defined here
12 | #define DEBUGV(...)

|
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src/LEAmDNS.h:119,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src/ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.cpp:23:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h: In member function 'size_t UdpContext::append(const char*, size_t)':
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:370:13: error: 'DEBUGV' was not declared in this scope
370 | DEBUGV("failed _reserve");
| ^~~~~~
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:370:13: note: the macro 'DEBUGV' had not yet been defined
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Arduino.h:309,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/WiFiClient.h:25,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/ESP8266WiFi.h:39,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src/LEAmDNS.h:124,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src/ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.cpp:23:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/debug.h:12: note: it was later defined here
12 | #define DEBUGV(...)

|
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:118,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS_Control.cpp:41:
.pio\libdeps\d1_mini\Fetch\src/debug.h:10:1: warning: multi-line comment [-Wcomment]
10 | //#define DEBUG_FETCH(format, args...)
| ^
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src/LEAmDNS.h:119,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src/ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.cpp:23:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h: In member function 'err_t UdpContext::trySend(const ip_addr_t*, uint16_t, bool)':
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:440:13: error: 'DEBUGV' was not declared in this scope
440 | DEBUGV("failed pbuf_alloc");
| ^~~~~~
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:440:13: note: the macro 'DEBUGV' had not yet been defined
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Arduino.h:309,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/WiFiClient.h:25,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/ESP8266WiFi.h:39,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src/LEAmDNS.h:124,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src/ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.cpp:23:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/debug.h:12: note: it was later defined here
12 | #define DEBUGV(...)

|
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src/LEAmDNS.h:119,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src/ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.cpp:23:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:451:13: error: 'DEBUGV' was not declared in this scope
451 | DEBUGV(":ust rc=%d\r\n", (int) err);
| ^~~~~~
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:451:13: note: the macro 'DEBUGV' had not yet been defined
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Arduino.h:309,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/WiFiClient.h:25,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/ESP8266WiFi.h:39,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src/LEAmDNS.h:124,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src/ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.cpp:23:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/debug.h:12: note: it was later defined here
12 | #define DEBUGV(...)

|
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:119,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.cpp:28:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h: In member function 'void UdpContext::unref()':
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:89:9: error: 'DEBUGV' was not declared in this scope
89 | DEBUGV(":ur %d\r\n", _refcnt);
| ^~~~~~
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:89:9: note: the macro 'DEBUGV' had not yet been defined
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Arduino.h:309,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/WiFiClient.h:25,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/ESP8266WiFi.h:39,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:124,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.cpp:28:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/debug.h:12: note: it was later defined here
12 | #define DEBUGV(...)

|
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src/LEAmDNS.h:119,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src/ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.cpp:23:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h: In member function 'void UdpContext::_recv(udp_pcb*, pbuf*, const ip_addr_t*, u16_t)':
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:526:17: error: 'DEBUGV' was not declared in this scope
526 | DEBUGV(":udr\r\n");
| ^~~~~~
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:526:17: note: the macro 'DEBUGV' had not yet been defined
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Arduino.h:309,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/WiFiClient.h:25,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/ESP8266WiFi.h:39,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src/LEAmDNS.h:124,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src/ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.cpp:23:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/debug.h:12: note: it was later defined here
12 | #define DEBUGV(...)

|
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src/LEAmDNS.h:119,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src/ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.cpp:23:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:562:13: error: 'DEBUGV' was not declared in this scope
562 | DEBUGV(":urch %d, %d\r\n", _rx_buf->tot_len, pb->tot_len);
| ^~~~~~
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Stream.h:25,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Udp.h:38,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/WiFiUdp.h:25,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:116,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS_Helpers.cpp:28:
.pio\libdeps\d1_mini\Fetch\src/debug.h:10:1: warning: multi-line comment [-Wcomment]
10 | //#define DEBUG_FETCH(format, args...)
| ^
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:562:13: note: the macro 'DEBUGV' had not yet been defined
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Arduino.h:309,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/WiFiClient.h:25,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/ESP8266WiFi.h:39,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src/LEAmDNS.h:124,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src/ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.cpp:23:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/debug.h:12: note: it was later defined here
12 | #define DEBUGV(...)

|
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src/LEAmDNS.h:119,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src/ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.cpp:23:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:572:13: error: 'DEBUGV' was not declared in this scope
572 | DEBUGV(":urn %d\r\n", pb->tot_len);
| ^~~~~~
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:572:13: note: the macro 'DEBUGV' had not yet been defined
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Arduino.h:309,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/WiFiClient.h:25,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/ESP8266WiFi.h:39,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src/LEAmDNS.h:124,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src/ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.cpp:23:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/debug.h:12: note: it was later defined here
12 | #define DEBUGV(...)

|
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:118,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS_Helpers.cpp:28:
.pio\libdeps\d1_mini\Fetch\src/debug.h:10:1: warning: multi-line comment [-Wcomment]
10 | //#define DEBUG_FETCH(format, args...)
| ^
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:119,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.cpp:28:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h: In member function 'size_t UdpContext::read(char*, size_t)':
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:331:9: error: 'DEBUGV' was not declared in this scope
331 | DEBUGV(":urd %d, %d, %d\r\n", size, _rx_buf_size, _rx_buf_offset);
| ^~~~~~
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:331:9: note: the macro 'DEBUGV' had not yet been defined
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Arduino.h:309,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/WiFiClient.h:25,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/ESP8266WiFi.h:39,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:124,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.cpp:28:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/debug.h:12: note: it was later defined here
12 | #define DEBUGV(...)

|
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:119,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.cpp:28:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h: In member function 'size_t UdpContext::append(const char*, size_t)':
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:370:13: error: 'DEBUGV' was not declared in this scope
370 | DEBUGV("failed _reserve");
| ^~~~~~
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:370:13: note: the macro 'DEBUGV' had not yet been defined
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Arduino.h:309,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/WiFiClient.h:25,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/ESP8266WiFi.h:39,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:124,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.cpp:28:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/debug.h:12: note: it was later defined here
12 | #define DEBUGV(...)

|
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:119,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.cpp:28:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h: In member function 'err_t UdpContext::trySend(const ip_addr_t*, uint16_t, bool)':
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:440:13: error: 'DEBUGV' was not declared in this scope
440 | DEBUGV("failed pbuf_alloc");
| ^~~~~~
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:119,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS_Control.cpp:41:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h: In member function 'void UdpContext::unref()':
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:89:9: error: 'DEBUGV' was not declared in this scope
89 | DEBUGV(":ur %d\r\n", _refcnt);
| ^~~~~~
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:89:9: note: the macro 'DEBUGV' had not yet been defined
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Arduino.h:309,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/WiFiClient.h:25,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/ESP8266WiFi.h:39,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:124,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS_Control.cpp:41:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/debug.h:12: note: it was later defined here
12 | #define DEBUGV(...)

|
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:119,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS_Control.cpp:41:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h: In member function 'size_t UdpContext::read(char*, size_t)':
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:331:9: error: 'DEBUGV' was not declared in this scope
331 | DEBUGV(":urd %d, %d, %d\r\n", size, _rx_buf_size, _rx_buf_offset);
| ^~~~~~
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:331:9: note: the macro 'DEBUGV' had not yet been defined
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Arduino.h:309,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/WiFiClient.h:25,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/ESP8266WiFi.h:39,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:124,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS_Control.cpp:41:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/debug.h:12: note: it was later defined here
12 | #define DEBUGV(...)

|
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:440:13: note: the macro 'DEBUGV' had not yet been defined
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:119,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS_Control.cpp:41:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h: In member function 'size_t UdpContext::append(const char*, size_t)':
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:370:13: error: 'DEBUGV' was not declared in this scope
370 | DEBUGV("failed _reserve");
| ^~~~~~
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:370:13: note: the macro 'DEBUGV' had not yet been defined
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Arduino.h:309,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/WiFiClient.h:25,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/ESP8266WiFi.h:39,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:124,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS_Control.cpp:41:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/debug.h:12: note: it was later defined here
12 | #define DEBUGV(...)

|
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Arduino.h:309,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/WiFiClient.h:25,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/ESP8266WiFi.h:39,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:124,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.cpp:28:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/debug.h:12: note: it was later defined here
12 | #define DEBUGV(...)

|
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:119,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.cpp:28:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:451:13: error: 'DEBUGV' was not declared in this scope
451 | DEBUGV(":ust rc=%d\r\n", (int) err);
| ^~~~~~
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:451:13: note: the macro 'DEBUGV' had not yet been defined
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Arduino.h:309,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/WiFiClient.h:25,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/ESP8266WiFi.h:39,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:124,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.cpp:28:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/debug.h:12: note: it was later defined here
12 | #define DEBUGV(...)

|
*** [.pio\build\d1_mini\lib4b5\ESP8266mDNS\ESP8266mDNS.cpp.o] Error 1
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:119,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS_Control.cpp:41:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h: In member function 'err_t UdpContext::trySend(const ip_addr_t*, uint16_t, bool)':
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:440:13: error: 'DEBUGV' was not declared in this scope
440 | DEBUGV("failed pbuf_alloc");
| ^~~~~~
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:440:13: note: the macro 'DEBUGV' had not yet been defined
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Arduino.h:309,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/WiFiClient.h:25,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/ESP8266WiFi.h:39,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:124,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS_Control.cpp:41:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/debug.h:12: note: it was later defined here
12 | #define DEBUGV(...)

|
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:119,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.cpp:28:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h: In member function 'void UdpContext::_recv(udp_pcb*, pbuf*, const ip_addr_t*, u16_t)':
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:526:17: error: 'DEBUGV' was not declared in this scope
526 | DEBUGV(":udr\r\n");
| ^~~~~~
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:526:17: note: the macro 'DEBUGV' had not yet been defined
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Arduino.h:309,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/WiFiClient.h:25,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/ESP8266WiFi.h:39,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:124,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.cpp:28:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/debug.h:12: note: it was later defined here
12 | #define DEBUGV(...)

|
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:119,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS_Control.cpp:41:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:451:13: error: 'DEBUGV' was not declared in this scope
451 | DEBUGV(":ust rc=%d\r\n", (int) err);
| ^~~~~~
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:451:13: note: the macro 'DEBUGV' had not yet been defined
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Arduino.h:309,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/WiFiClient.h:25,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/ESP8266WiFi.h:39,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:124,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS_Control.cpp:41:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/debug.h:12: note: it was later defined here
12 | #define DEBUGV(...)

|
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:119,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS_Control.cpp:41:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h: In member function 'void UdpContext::_recv(udp_pcb*, pbuf*, const ip_addr_t*, u16_t)':
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:526:17: error: 'DEBUGV' was not declared in this scope
526 | DEBUGV(":udr\r\n");
| ^~~~~~
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:526:17: note: the macro 'DEBUGV' had not yet been defined
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Arduino.h:309,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/WiFiClient.h:25,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/ESP8266WiFi.h:39,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:124,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS_Control.cpp:41:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/debug.h:12: note: it was later defined here
12 | #define DEBUGV(...)

|
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:119,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.cpp:28:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:562:13: error: 'DEBUGV' was not declared in this scope
562 | DEBUGV(":urch %d, %d\r\n", _rx_buf->tot_len, pb->tot_len);
| ^~~~~~
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:562:13: note: the macro 'DEBUGV' had not yet been defined
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Arduino.h:309,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/WiFiClient.h:25,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/ESP8266WiFi.h:39,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:124,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.cpp:28:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/debug.h:12: note: it was later defined here
12 | #define DEBUGV(...)

|
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:119,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS_Control.cpp:41:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:562:13: error: 'DEBUGV' was not declared in this scope
562 | DEBUGV(":urch %d, %d\r\n", _rx_buf->tot_len, pb->tot_len);
| ^~~~~~
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:562:13: note: the macro 'DEBUGV' had not yet been defined
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Arduino.h:309,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/WiFiClient.h:25,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/ESP8266WiFi.h:39,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:124,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS_Control.cpp:41:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/debug.h:12: note: it was later defined here
12 | #define DEBUGV(...)

|
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:119,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS_Helpers.cpp:28:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h: In member function 'void UdpContext::unref()':
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:89:9: error: 'DEBUGV' was not declared in this scope
89 | DEBUGV(":ur %d\r\n", _refcnt);
| ^~~~~~
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:89:9: note: the macro 'DEBUGV' had not yet been defined
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Arduino.h:309,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/WiFiClient.h:25,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/ESP8266WiFi.h:39,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:124,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS_Helpers.cpp:28:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/debug.h:12: note: it was later defined here
12 | #define DEBUGV(...)

|
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:119,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.cpp:28:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:572:13: error: 'DEBUGV' was not declared in this scope
572 | DEBUGV(":urn %d\r\n", pb->tot_len);
| ^~~~~~
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:572:13: note: the macro 'DEBUGV' had not yet been defined
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Arduino.h:309,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/WiFiClient.h:25,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/ESP8266WiFi.h:39,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:124,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.cpp:28:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/debug.h:12: note: it was later defined here
12 | #define DEBUGV(...)

|
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:119,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS_Control.cpp:41:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:572:13: error: 'DEBUGV' was not declared in this scope
572 | DEBUGV(":urn %d\r\n", pb->tot_len);
| ^~~~~~
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:572:13: note: the macro 'DEBUGV' had not yet been defined
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Arduino.h:309,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/WiFiClient.h:25,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/ESP8266WiFi.h:39,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:124,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS_Control.cpp:41:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/debug.h:12: note: it was later defined here
12 | #define DEBUGV(...)

|
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:119,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS_Helpers.cpp:28:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h: In member function 'size_t UdpContext::read(char*, size_t)':
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:331:9: error: 'DEBUGV' was not declared in this scope
331 | DEBUGV(":urd %d, %d, %d\r\n", size, _rx_buf_size, _rx_buf_offset);
| ^~~~~~
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:331:9: note: the macro 'DEBUGV' had not yet been defined
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Arduino.h:309,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/WiFiClient.h:25,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/ESP8266WiFi.h:39,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:124,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS_Helpers.cpp:28:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/debug.h:12: note: it was later defined here
12 | #define DEBUGV(...)

|
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:119,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS_Helpers.cpp:28:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h: In member function 'size_t UdpContext::append(const char*, size_t)':
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:370:13: error: 'DEBUGV' was not declared in this scope
370 | DEBUGV("failed _reserve");
| ^~~~~~
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:370:13: note: the macro 'DEBUGV' had not yet been defined
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Arduino.h:309,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/WiFiClient.h:25,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/ESP8266WiFi.h:39,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:124,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS_Helpers.cpp:28:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/debug.h:12: note: it was later defined here
12 | #define DEBUGV(...)

|
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:119,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS_Helpers.cpp:28:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h: In member function 'err_t UdpContext::trySend(const ip_addr_t*, uint16_t, bool)':
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:440:13: error: 'DEBUGV' was not declared in this scope
440 | DEBUGV("failed pbuf_alloc");
| ^~~~~~
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:440:13: note: the macro 'DEBUGV' had not yet been defined
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Arduino.h:309,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/WiFiClient.h:25,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/ESP8266WiFi.h:39,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:124,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS_Helpers.cpp:28:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/debug.h:12: note: it was later defined here
12 | #define DEBUGV(...)

|
*** [.pio\build\d1_mini\lib4b5\ESP8266mDNS\LEAmDNS_Control.cpp.o] Error 1
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:119,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS_Helpers.cpp:28:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:451:13: error: 'DEBUGV' was not declared in this scope
451 | DEBUGV(":ust rc=%d\r\n", (int) err);
| ^~~~~~
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:451:13: note: the macro 'DEBUGV' had not yet been defined
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Arduino.h:309,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/WiFiClient.h:25,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/ESP8266WiFi.h:39,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:124,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS_Helpers.cpp:28:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/debug.h:12: note: it was later defined here
12 | #define DEBUGV(...)

|
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:119,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS_Helpers.cpp:28:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h: In member function 'void UdpContext::_recv(udp_pcb*, pbuf*, const ip_addr_t*, u16_t)':
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:526:17: error: 'DEBUGV' was not declared in this scope
526 | DEBUGV(":udr\r\n");
| ^~~~~~
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:526:17: note: the macro 'DEBUGV' had not yet been defined
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Arduino.h:309,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/WiFiClient.h:25,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/ESP8266WiFi.h:39,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:124,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS_Helpers.cpp:28:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/debug.h:12: note: it was later defined here
12 | #define DEBUGV(...)

|
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:119,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS_Helpers.cpp:28:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:562:13: error: 'DEBUGV' was not declared in this scope
562 | DEBUGV(":urch %d, %d\r\n", _rx_buf->tot_len, pb->tot_len);
| ^~~~~~
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:562:13: note: the macro 'DEBUGV' had not yet been defined
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Arduino.h:309,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/WiFiClient.h:25,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/ESP8266WiFi.h:39,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:124,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS_Helpers.cpp:28:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/debug.h:12: note: it was later defined here
12 | #define DEBUGV(...)

|
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:119,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS_Helpers.cpp:28:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:572:13: error: 'DEBUGV' was not declared in this scope
572 | DEBUGV(":urn %d\r\n", pb->tot_len);
| ^~~~~~
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/include/UdpContext.h:572:13: note: the macro 'DEBUGV' had not yet been defined
In file included from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/Arduino.h:309,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/WiFiClient.h:25,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266WiFi\src/ESP8266WiFi.h:39,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS.h:124,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\ESP8266mDNS.h:48,
from C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\libraries\ESP8266mDNS\src\LEAmDNS_Helpers.cpp:28:
C:\Users\mocha.platformio\packages\framework-arduinoespressif8266\cores\esp8266/debug.h:12: note: it was later defined here
12 | #define DEBUGV(...)

|
*** [.pio\build\d1_mini\lib4b5\ESP8266mDNS\LEAmDNS.cpp.o] Error 1
*** [.pio\build\d1_mini\lib4b5\ESP8266mDNS\LEAmDNS_Helpers.cpp.o] Error 1
================================= [FAILED] Took 56.55 seconds =================================

Fatal error: missing WiFiClientSecure.h

Hello. I'm working with an Adafruit Matrix Portal, and can't get your (wonderful looking!) library to initialize. I'm getting the following output:

Multiple libraries were found for "Adafruit_ZeroDMA.h"
 Used: /Users/dan/Library/Arduino15/packages/adafruit/hardware/samd/1.7.10/libraries/Adafruit_ZeroDMA
 Not used: /Users/dan/Documents/Arduino/libraries/Adafruit_Zero_DMA_Library
/Users/dan/Documents/Arduino/libraries/Fetch/src/Fetch.cpp:3:10: fatal error: WiFiClientSecure.h: No such file or directory
    3 | #include <WiFiClientSecure.h>
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1

This particular board uses WiFiNINA.h to get connected. Not sure if that's relevant! Just trying to offer whatever information I can! Would love any help with this. Thanks!

Support Custom Headers

Hi, are custom headers supported? I tried adding one called "authKey" and got an error 'class Headers' has no member named 'authkey'.

fatal error: Seeed_Arduino_FreeRTOS.h: No such file or directory

I'm using an Arduino Nano 33 IOT in combination with Arduino cloud.

After just putting in #include <Fetch.h>

I get the following error:

/usr/local/bin/arduino-cli compile --fqbn arduino:samd:nano_33_iot --libraries /home/builder/opt/libraries/latest --build-cache-path /tmp --output-dir /tmp/260877906/build --build-path /tmp/arduino-build-AE368CC7328FCB720E1058DE3A5AF9B4 --library /mnt/create-efs/webide/f6/8c/f68c6eea0c7e0ac8d2a2abd1ea91c36f:ryanfarber/libraries_v2/Fetch --library /home/builder/opt/libraries/tasker_2_0_3 /tmp/260877906/plantbot_sep27a

Using library seeed_arduino_rpcunified_2_1_4 at version 2.1.4 in folder: /home/builder/opt/libraries/seeed_arduino_rpcunified_2_1_4

Using library freertos_samd51_1_2_0 at version 1.2.0 in folder: /home/builder/opt/libraries/freertos_samd51_1_2_0

In file included from /home/builder/opt/libraries/latest/seeed_arduino_rpcunified_2_1_4/src/esp/esp_event_loop.h:22:0,

from /home/builder/opt/libraries/latest/seeed_arduino_rpcunified_2_1_4/src/esp/esp_lib_unified.h:12,

from /home/builder/opt/libraries/latest/seeed_arduino_rpcunified_2_1_4/src/seeed_rpcUnified.h:11,

from /home/builder/opt/libraries/latest/seeed_arduino_rpcwifi_1_0_6/src/WiFiGeneric.h:26,

from /home/builder/opt/libraries/latest/seeed_arduino_rpcwifi_1_0_6/src/WiFiSTA.h:28,

from /home/builder/opt/libraries/latest/seeed_arduino_rpcwifi_1_0_6/src/WiFi.h:32,

from /home/builder/opt/libraries/latest/seeed_arduino_rpcwifi_1_0_6/src/rpcWiFi.h:1,

from /home/builder/opt/libraries/latest/seeed_arduino_rpcwifi_1_0_6/src/WiFiClientSecure.h:25,

from /mnt/create-efs/webide/f6/8c/f68c6eea0c7e0ac8d2a2abd1ea91c36f:ryanfarber/libraries_v2/Fetch/src/Fetch.cpp:3:

/home/builder/opt/libraries/latest/seeed_arduino_rpcunified_2_1_4/src/esp/esp_event.h:18:10: fatal error: Seeed_Arduino_FreeRTOS.h: No such file or directory

#include "Seeed_Arduino_FreeRTOS.h"

^~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

Error during build: exit status 1

Unable to compile project on ESP32 board

Hi there,

I'm trying to implement this project on a M5Stack Core2 (ESP32) board, but am having issues compiling the code. Would love some input or debugging tips!

Error:

/Arduino/libraries/Fetch/src/utils/Url/LCBUrl/LCBUrl.cpp: In member function 'bool LCBUrl::isMDNS(const char*)':
/Arduino/libraries/Fetch/src/utils/Url/LCBUrl/LCBUrl.cpp:579:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  char * lastLabel = "\0";
                     ^~~~
/Arduino/libraries/Fetch/src/utils/Url/LCBUrl/LCBUrl.cpp: In member function 'IPAddress LCBUrl::getIP(const char*)':
/Arduino/libraries/Fetch/src/utils/Url/LCBUrl/LCBUrl.cpp:634:48: error: cannot convert 'ip4_addr*' to 'esp_ip4_addr_t*' {aka 'esp_ip4_addr*'}
         esp_err_t err = mdns_query_a(hn, 2000, &addr);
                                                ^~~~~
In file included from /Users/dblencowe/Library/Arduino15/packages/m5stack/hardware/esp32/2.0.3/libraries/ESPmDNS/src/ESPmDNS.h:46,
                 from /Arduino/libraries/Fetch/src/utils/Url/LCBUrl/LCBUrl.h:41,
                 from /Arduino/libraries/Fetch/src/utils/Url/LCBUrl/LCBUrl.cpp:32:
/Users/dblencowe/Library/Arduino15/packages/m5stack/hardware/esp32/2.0.3/tools/sdk/esp32/include/mdns/include/mdns.h:649:83: note:   initializing argument 3 of 'esp_err_t mdns_query_a(const char*, uint32_t, esp_ip4_addr_t*)'
 esp_err_t mdns_query_a(const char * host_name, uint32_t timeout, esp_ip4_addr_t * addr);
                                                                  ~~~~~~~~~~~~~~~~~^~~~

Project Code

#define LCBURL_MDNS
#include <M5Core2.h>
#include <WiFi.h>
#include <Fetch.h>

const char* ssid = "";
const char* password = "";
const String apiAddress = "";
const String apiToken = "";
const String hostname = "ESP32";

IPAddress localIp;
#define CACert ""

void setup() {
  M5.begin();
  Serial.begin(115200);
  WiFi.setHostname(hostname.c_str());
  setupWifi();
  Serial.println("Local IP: " + localIp.toString());


  RequestOptions options;
  options.method = "GET";
  options.caCert = CACert;
  
  Response response = fetch("https://api.github.com/", options);
  
  // Printing response body as plain text.
  Serial.println();
  Serial.println(response.text());
}

void loop() {
  
}

void setupWifi() {
   WiFi.mode(WIFI_STA);
   WiFi.begin(ssid, password);
   Serial.print("connecting to wifi..");
   while (WiFi.status() != WL_CONNECTED) {
    Serial.print('.');
    delay(1000);
  }
  Serial.println("");
  Serial.print("RRSI: ");
  Serial.println(WiFi.RSSI());
  localIp = WiFi.localIP();
}

Currently compiling on version 1.8.15 of the Arduino IDE, using an Intel Macbook

Thanks!

Great Idea

I like this concept. I will try it on Adafruit.io

Question, HTTPS issue

Hi, I cannot seem to get my code working with HTTPS. It will just print out dots instead of any response. Any help would be appreciated.

RequestOptions options;
  
    Headers headers;

    headers.contentType = "application/json";
    headers.connection = "keep-alive";
    headers.authkey = "foxtrot%LovesAPIs2022!";
    
    options.method = "GET";
    options.fingerprint = "C6 D5 5E A8 A5 B0 47 41 E5 A6 62 58 B5 B1 4B 64 E8 39 30 DF";
    
    Response response = fetch("https://foxtrot-mixpanel-api.herokuapp.com/", options);
    
    // Printing response body as plain text.
    Serial.println();
    Serial.println(response.statusText);
    Serial.println(response.text());

Dependency Issues for ESP32 Board

First of all, thank you for writing this Fetch abstraction layer.
I am trying to get it working on my ESP32 board and am running into compatibility issues with some of the dependencies.

The first issue I ran into was a missing dependency "LCBUrl".
I installed it manually and it is now compiling past that point, but giving me a warning.
"WARNING: library LCBUrl claims to run on avr architecture(s) and may be incompatible with your current board which runs on esp32 architecture(s)."

The second issue, which I am currently stuck on is related to the WifiClientSecure class.
The ESP32 board appears to install a WifiClientSecure package, but it does not have the same methods that you are calling.

C:\Users\KoGMa\Documents\Arduino\libraries\Fetch\src\Fetch.cpp: In function 'Response fetch(const char*, RequestOptions)':
C:\Users\KoGMa\Documents\Arduino\libraries\Fetch\src\Fetch.cpp:17:21: error: 'class WiFiClientSecure' has no member named 'setFingerprint'
         else client.setFingerprint(options.fingerprint.c_str());
                     ^
C:\Users\KoGMa\Documents\Arduino\libraries\Fetch\src\Fetch.cpp:21:57: error: no matching function for call to 'WiFiClientSecure::connect(String&, uint&)'
     while(!client.connect(parsedUrl.host, parsedUrl.port)) {
                                                         ^
In file included from C:\Users\KoGMa\Documents\Arduino\libraries\Fetch\src\Fetch.cpp:2:0:
C:\Users\KoGMa\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFiClientSecure\src/WiFiClientSecure.h:48:9: note: candidate: virtual int WiFiClientSecure::connect(IPAddress, uint16_t)
     int connect(IPAddress ip, uint16_t port);
         ^
C:\Users\KoGMa\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFiClientSecure\src/WiFiClientSecure.h:48:9: note:   no known conversion for argument 1 from 'String' to 'IPAddress'
C:\Users\KoGMa\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFiClientSecure\src/WiFiClientSecure.h:49:9: note: candidate: virtual int WiFiClientSecure::connect(IPAddress, uint16_t, int32_t)
     int connect(IPAddress ip, uint16_t port, int32_t timeout);
         ^
C:\Users\KoGMa\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFiClientSecure\src/WiFiClientSecure.h:49:9: note:   candidate expects 3 arguments, 2 provided
C:\Users\KoGMa\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFiClientSecure\src/WiFiClientSecure.h:50:9: note: candidate: virtual int WiFiClientSecure::connect(const char*, uint16_t)
     int connect(const char *host, uint16_t port);
         ^
C:\Users\KoGMa\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFiClientSecure\src/WiFiClientSecure.h:50:9: note:   no known conversion for argument 1 from 'String' to 'const char*'
C:\Users\KoGMa\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFiClientSecure\src/WiFiClientSecure.h:51:9: note: candidate: virtual int WiFiClientSecure::connect(const char*, uint16_t, int32_t)
     int connect(const char *host, uint16_t port, int32_t timeout);
         ^
C:\Users\KoGMa\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFiClientSecure\src/WiFiClientSecure.h:51:9: note:   candidate expects 3 arguments, 2 provided
C:\Users\KoGMa\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFiClientSecure\src/WiFiClientSecure.h:52:9: note: candidate: int WiFiClientSecure::connect(IPAddress, uint16_t, const char*, const char*, const char*)
     int connect(IPAddress ip, uint16_t port, const char *rootCABuff, const char *cli_cert, const char *cli_key);
         ^
C:\Users\KoGMa\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFiClientSecure\src/WiFiClientSecure.h:52:9: note:   candidate expects 5 arguments, 2 provided
C:\Users\KoGMa\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFiClientSecure\src/WiFiClientSecure.h:53:9: note: candidate: int WiFiClientSecure::connect(const char*, uint16_t, const char*, const char*, const char*)
     int connect(const char *host, uint16_t port, const char *rootCABuff, const char *cli_cert, const char *cli_key);
         ^
C:\Users\KoGMa\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFiClientSecure\src/WiFiClientSecure.h:53:9: note:   candidate expects 5 arguments, 2 provided
C:\Users\KoGMa\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFiClientSecure\src/WiFiClientSecure.h:54:9: note: candidate: int WiFiClientSecure::connect(IPAddress, uint16_t, const char*, const char*)
     int connect(IPAddress ip, uint16_t port, const char *pskIdent, const char *psKey);
         ^
C:\Users\KoGMa\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFiClientSecure\src/WiFiClientSecure.h:54:9: note:   candidate expects 4 arguments, 2 provided
C:\Users\KoGMa\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFiClientSecure\src/WiFiClientSecure.h:55:9: note: candidate: int WiFiClientSecure::connect(const char*, uint16_t, const char*, const char*)
     int connect(const char *host, uint16_t port, const char *pskIdent, const char *psKey);
         ^
C:\Users\KoGMa\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFiClientSecure\src/WiFiClientSecure.h:55:9: note:   candidate expects 4 arguments, 2 provided

What would you recommend to do to get this working with an ESP32 board?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.