From 7b8879ee1ec00d4286fb67caac6d8358494165ec Mon Sep 17 00:00:00 2001 From: Hieromon Ikasamo Date: Wed, 16 Oct 2019 17:05:52 +0900 Subject: [PATCH] Fixed no member named 'printTo' compilation error --- README.md | 1 + examples/Credential/Credential.ino | 2 +- mkdocs/changelog.md | 1 + src/AutoConnectUpdate.cpp | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 134e448..a7d8cb3 100644 --- a/README.md +++ b/README.md @@ -103,6 +103,7 @@ Full documentation is available on https://Hieromon.github.io/AutoConnect, some ### [1.1.0] Oct. 15, 2019 - Supprts static IPs with the 'Configure new AP' menu. (issue #132) +- Fixed compilation error that no member named 'printTo' with ArduinoJson 5. ### [1.0.3] Sept. 30, 2019 - Fixed a return of AutoConnectCredential::entries(). (issue #133) diff --git a/examples/Credential/Credential.ino b/examples/Credential/Credential.ino index ed1e0bc..fe2fa5e 100644 --- a/examples/Credential/Credential.ino +++ b/examples/Credential/Credential.ino @@ -125,7 +125,7 @@ String delCredential(PageArgument& args) { int8_t e = args.arg("num").toInt(); Serial.printf("Request deletion #%d\n", e); if (e > 0) { - struct station_config entry; + station_config_t entry; // If the input number is valid, delete that entry. int8_t de = ac.load(e - 1, &entry); // A base of entry num is 0. diff --git a/mkdocs/changelog.md b/mkdocs/changelog.md index 25a35b4..7e6e844 100644 --- a/mkdocs/changelog.md +++ b/mkdocs/changelog.md @@ -1,5 +1,6 @@ #### [1.1.0] Oct. 15, 2019 - Supports static IPs with the [**Configure new AP**](menu.md#configure-new-ap) menu. +- Fixed compilation error that no member named 'printTo' with ArduinoJson 5. #### [1.0.3] Sept. 30, 2019 - Fixed a return of AutoConnectCredential::entries(). diff --git a/src/AutoConnectUpdate.cpp b/src/AutoConnectUpdate.cpp index 3b9b678..d5b7409 100644 --- a/src/AutoConnectUpdate.cpp +++ b/src/AutoConnectUpdate.cpp @@ -405,7 +405,7 @@ String AutoConnectUpdateAct::_onCatalog(AutoConnectAux& catalog, PageArgument& a if (parse) { #ifdef AC_DEBUG AC_DBG_DUMB("\n"); - ARDUINOJSON_PRINT(jb, AC_DEBUG_PORT); + ARDUINOJSON_PRINT(json, AC_DEBUG_PORT); #endif // Register only bin type file name as available sketch binary to // AutoConnectRadio value based on the response from the update server.