xoseperez / espurna

Home automation firmware for ESP8266-based devices
http://tinkerman.cat
GNU General Public License v3.0
3k stars 636 forks source link

Compile error - ArduinoJson #1613

Closed icevoodoo closed 5 years ago

icevoodoo commented 5 years ago

I get those errors bellow when I try to compile Espurna for Sonoff-TH. I use Visual Studio Code. Untill 2-3 day ago everything was OK. Now the latest arduinojson has broke my compilation process.

Please advice, and 10x for Your time.

D:/GitHub/xoseperez/code/espurna/mqtt.ino:1169:73: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonObject& {aka ArduinoJson691_000::ObjectRef&}' from an rvalue of type 'ArduinoJson691_000::ObjectRef'
D:/GitHub/xoseperez/code/espurna/mqtt.ino:1181:59: error: no matching function for call to 'ArduinoJson691_000::ObjectRef::set(char*&, int)'Compiling .pioenvs\itead-sonoff-th\lib537\ESP8266WiFi\ESP8266WiFiScan.cpp.o

D:/GitHub/xoseperez/code/espurna/mqtt.ino:1181:59: note: candidate is:
In file included from .piolibdeps\ArduinoJson_ID64\src/ArduinoJson.hpp:16:0,
from .piolibdeps\ArduinoJson_ID64\src/ArduinoJson.h:9,
from espurna\config/prototypes.h:2,
from espurna\config/all.h:35,
Compiling .pioenvs\itead-sonoff-th\lib537\ESP8266WiFi\WiFiClient.cpp.o
from D:/GitHub/xoseperez/code/espurna/espurna.ino:43:
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Object/ObjectRef.hpp:166:21: note: bool ArduinoJson691_000::ObjectRef::set(ArduinoJson691_000::ObjectConstRef)
FORCE_INLINE bool set(ObjectConstRef src) {
^
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Object/ObjectRef.hpp:166:21: note:   candidate expects 1 argument, 2 provided
D:/GitHub/xoseperez/code/espurna/mqtt.ino:1185:54: error: no matching function for call to 'ArduinoJson691_000::ObjectRef::set(char*&, double&)'
D:/GitHub/xoseperez/code/espurna/mqtt.ino:1185:54: note: candidate is:
In file included from .piolibdeps\ArduinoJson_ID64\src/ArduinoJson.hpp:16:0,
from .piolibdeps\ArduinoJson_ID64\src/ArduinoJson.h:9,
from espurna\config/prototypes.h:2,
from espurna\config/all.h:35,
from D:/GitHub/xoseperez/code/espurna/espurna.ino:43:
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Object/ObjectRef.hpp:166:21: note: bool ArduinoJson691_000::ObjectRef::set(ArduinoJson691_000::ObjectConstRef)
FORCE_INLINE bool set(ObjectConstRef src) {
^
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Object/ObjectRef.hpp:166:21: note:   candidate expects 1 argument, 2 provided
D:/GitHub/xoseperez/code/espurna/mqtt.ino:1191:60: error: no matching function for call to 'ArduinoJson691_000::ObjectRef::set(char*&, char*&)'
D:/GitHub/xoseperez/code/espurna/mqtt.ino:1191:60: note: candidate is:
In file included from .piolibdeps\ArduinoJson_ID64\src/ArduinoJson.hpp:16:0,
from .piolibdeps\ArduinoJson_ID64\src/ArduinoJson.h:9,
from espurna\config/prototypes.h:2,
from espurna\config/all.h:35,
from D:/GitHub/xoseperez/code/espurna/espurna.ino:43:
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Object/ObjectRef.hpp:166:21: note: bool ArduinoJson691_000::ObjectRef::set(ArduinoJson691_000::ObjectConstRef)
FORCE_INLINE bool set(ObjectConstRef src) {
^
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Object/ObjectRef.hpp:166:21: note:   candidate expects 1 argument, 2 provided
D:/GitHub/xoseperez/code/espurna/mqtt.ino: In function 'void mqttFlush()':
D:/GitHub/xoseperez/code/espurna/mqtt.ino:1223:23: error: 'jsonBuffer' was not declared in this scope
D:/GitHub/xoseperez/code/espurna/mqtt.ino:1269:10: error: 'ArduinoJson::JsonObject' has no member named 'printTo'
D:/GitHub/xoseperez/code/espurna/relay.ino: In function 'void _relayWebSocketUpdate(ArduinoJson::JsonObject&)':
D:/GitHub/xoseperez/code/espurna/relay.ino:1189:60: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonArray& {aka ArduinoJson691_000::ArrayRef&}' from an rvalue of type 'ArduinoJson691_000::ArrayRef'
D:/GitHub/xoseperez/code/espurna/relay.ino: In function 'void _relayWebSocketSendRelays()':
D:/GitHub/xoseperez/code/espurna/relay.ino:1261:23: error: 'jsonBuffer' was not declared in this scope
D:/GitHub/xoseperez/code/espurna/relay.ino:1265:63: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonObject& {aka ArduinoJson691_000::ObjectRef&}' from an rvalue of type 'ArduinoJson691_000::ObjectRef'
D:/GitHub/xoseperez/code/espurna/relay.ino:1275:54: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonArray& {aka ArduinoJson691_000::ArrayRef&}' from an rvalue of type 'ArduinoJson691_000::ArrayRef'
D:/GitHub/xoseperez/code/espurna/relay.ino:1277:54: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonArray& {aka ArduinoJson691_000::ArrayRef&}' from an rvalue of type 'ArduinoJson691_000::ArrayRef'
D:/GitHub/xoseperez/code/espurna/relay.ino:1279:56: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonArray& {aka ArduinoJson691_000::ArrayRef&}' from an rvalue of type 'ArduinoJson691_000::ArrayRef'
D:/GitHub/xoseperez/code/espurna/relay.ino:1281:54: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonArray& {aka ArduinoJson691_000::ArrayRef&}' from an rvalue of type 'ArduinoJson691_000::ArrayRef'
D:/GitHub/xoseperez/code/espurna/relay.ino:1283:56: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonArray& {aka ArduinoJson691_000::ArrayRef&}' from an rvalue of type 'ArduinoJson691_000::ArrayRef'
D:/GitHub/xoseperez/code/espurna/relay.ino:1285:66: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonArray& {aka ArduinoJson691_000::ArrayRef&}' from an rvalue of type 'ArduinoJson691_000::ArrayRef'
D:/GitHub/xoseperez/code/espurna/relay.ino:1291:60: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonArray& {aka ArduinoJson691_000::ArrayRef&}' from an rvalue of type 'ArduinoJson691_000::ArrayRef'
D:/GitHub/xoseperez/code/espurna/relay.ino:1293:70: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonArray& {aka ArduinoJson691_000::ArrayRef&}' from an rvalue of type 'ArduinoJson691_000::ArrayRef'
D:/GitHub/xoseperez/code/espurna/relay.ino:1295:70: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonArray& {aka ArduinoJson691_000::ArrayRef&}' from an rvalue of type 'ArduinoJson691_000::ArrayRef'
D:/GitHub/xoseperez/code/espurna/scheduler.ino: In function 'void _schWebSocketOnSend(ArduinoJson::JsonObject&)':
DC:/GitHub/xoseperez/code/espurna/scheduler.ino:57:64: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonObject& {aka ArduinoJson691_000::ObjectRef&}' from an rvalue of type 'ArduinoJson691_000::ObjectRef'ompiling .pioenvs\itead-sonoff-th\lib537\ESP8266WiFi\WiFiClientSecure.cpp.o

schedules["start"] = 0;
^
D:/GitHub/xoseperez/code/espurna/scheduler.ino:63:66: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonArray& {aka ArduinoJson691_000::ArrayRef&}' from an rvalue of type 'ArduinoJson691_000::ArrayRef'
// -----------------------------------------------------------------------------
^
D:/GitHub/xoseperez/code/espurna/scheduler.ino:65:65: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonArray& {aka ArduinoJson691_000::ArrayRef&}' from an rvalue of type 'ArduinoJson691_000::ArrayRef'
void _schConfigure() {
^
D:/GitHub/xoseperez/code/espurna/scheduler.ino:67:64: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonArray& {aka ArduinoJson691_000::ArrayRef&}' from an rvalue of type 'ArduinoJson691_000::ArrayRef'
bool delete_flag = false;
^
D:/GitHub/xoseperez/code/espurna/scheduler.ino:69:60: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonArray& {aka ArduinoJson691_000::ArrayRef&}' from an rvalue of type 'ArduinoJson691_000::ArrayRef'
for (unsigned char i = 0; i < SCHEDULER_MAX_SCHEDULES; i++) {
^
D:/GitHub/xoseperez/code/espurna/scheduler.ino:71:60: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonArray& {aka ArduinoJson691_000::ArrayRef&}' from an rvalue of type 'ArduinoJson691_000::ArrayRef'
int sch_switch = getSetting("schSwitch", i, 0xFF).toInt();
^
D:/GitHub/xoseperez/code/espurna/scheduler.ino:73:64: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonArray& {aka ArduinoJson691_000::ArrayRef&}' from an rvalue of type 'ArduinoJson691_000::ArrayRef'

^
D:/GitHub/xoseperez/code/espurna/scheduler.ino:75:58: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonArray& {aka ArduinoJson691_000::ArrayRef&}' from an rvalue of type 'ArduinoJson691_000::ArrayRef'

^
D:/GitHub/xoseperez/code/espurna/scheduler.ino:77:63: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonArray& {aka ArduinoJson691_000::ArrayRef&}' from an rvalue of type 'ArduinoJson691_000::ArrayRef'
delSetting("schSwitch", i);
^
D:/GitHub/xoseperez/code/espurna/sensor.ino: In function 'void _sensorWebSocketSendData(ArduinoJson::JsonObject&)':
D:/GitHub/xoseperez/code/espurna/sensor.ino:291:66: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonObject& {aka ArduinoJson691_000::ObjectRef&}' from an rvalue of type 'ArduinoJson691_000::ObjectRef'
String topic = magnitudeTopic(magnitude.type);
^
D:/GitHub/xoseperez/code/espurna/sensor.ino:297:60: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonArray& {aka ArduinoJson691_000::ArrayRef&}' from an rvalue of type 'ArduinoJson691_000::ArrayRef'
double value = _sensor_realtime ? magnitude.current : magnitude.reported;
^
D:/GitHub/xoseperez/code/espurna/sensor.ino:299:58: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonArray& {aka ArduinoJson691_000::ArrayRef&}' from an rvalue of type 'ArduinoJson691_000::ArrayRef'
});
^
D:/GitHub/xoseperez/code/espurna/sensor.ino:301:60: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonArray& {aka ArduinoJson691_000::ArrayRef&}' from an rvalue of type 'ArduinoJson691_000::ArrayRef'
}
^
D:/GitHub/xoseperez/code/espurna/sensor.ino:303:60: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonArray& {aka ArduinoJson691_000::ArrayRef&}' from an rvalue of type 'ArduinoJson691_000::ArrayRef'
}
^
D:/GitHub/xoseperez/code/espurna/sensor.ino:305:60: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonArray& {aka ArduinoJson691_000::ArrayRef&}' from an rvalue of type 'ArduinoJson691_000::ArrayRef'
#endif // API_SUPPORT
^
D:/GitHub/xoseperez/code/espurna/sensor.ino:307:72: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonArray& {aka ArduinoJson691_000::ArrayRef&}' from an rvalue of type 'ArduinoJson691_000::ArrayRef'
#if TERMINAL_SUPPORT
^
D:/GitHub/xoseperez/code/espurna/settings.ino: In function 'bool settingsRestoreJson(ArduinoJson::JsonObject&)':
D:/GitHub/xoseperez/code/espurna/settings.ino:373:38: error: cannot convert 'ArduinoJson691_000::Pair::key' from type 'ArduinoJson691_000::String (ArduinoJson691_000::Pair::)()const' to type 'const char*'
D:/GitHub/xoseperez/code/espurna/settings.ino:375:42: error: cannot convert 'ArduinoJson691_000::Pair::key' from type 'ArduinoJson691_000::String (ArduinoJson691_000::Pair::)()const' to type 'const char*'
D:/GitHub/xoseperez/code/espurna/settings.ino:377:41: error: cannot convert 'ArduinoJson691_000::Pair::key' from type 'ArduinoJson691_000::String (ArduinoJson691_000::Pair::)()const' to type 'const char*'
D:/GitHub/xoseperez/code/espurna/settings.ino:379:46: error: 'element.ArduinoJson691_000::Pair::value' does not have class type
Compiling .pioenvs\itead-sonoff-th\lib537\ESP8266WiFi\WiFiServer.cpp.o
D:/GitHub/xoseperez/code/espurna/settings.ino:379:50: error: expected primary-expression before 'char'
D:/GitHub/xoseperez/code/espurna/terminal.ino: In lambda function:
D:/GitHub/xoseperez/code/espurna/terminal.ino:385:27: error: 'jsonBuffer' was not declared in this scope
D:/GitHub/xoseperez/code/espurna/terminal.ino:393:14: error: 'ArduinoJson::JsonObject' has no member named 'printTo'
D:/GitHub/xoseperez/code/espurna/thinkspeak.ino: In function 'void _tspkWebSocketOnSend(ArduinoJson::JsonObject&)':
D:/GitHub/xoseperez/code/espurna/thinkspeak.ino:141:60: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonArray& {aka ArduinoJson691_000::ArrayRef&}' from an rvalue of type 'ArduinoJson691_000::ArrayRef'
uint8_t fp[20] = {0};
^
In file included from D:/GitHub/xoseperez/code/espurna/web.ino:29:0:
.piolibdeps\ESP Async WebServer\src/AsyncJson.h: At global scope:
.piolibdeps\ESP Async WebServer\src/AsyncJson.h:54:23: error: '_jsonBuffer' does not name a type
DynamicJsonBuffer _jsonBuffer;
^
.piolibdeps\ESP Async WebServer\src/AsyncJson.h: In constructor 'AsyncJsonResponse::AsyncJsonResponse(bool)':
.piolibdeps\ESP Async WebServer\src/AsyncJson.h:62:17: error: '_jsonBuffer' was not declared in this scope
_root = _jsonBuffer.createArray();
^
.piolibdeps\ESP Async WebServer\src/AsyncJson.h:64:17: error: '_jsonBuffer' was not declared in this scope
_root = _jsonBuffer.createObject();
^
.piolibdeps\ESP Async WebServer\src/AsyncJson.h: In member function 'size_t AsyncJsonResponse::setLength()':
.piolibdeps\ESP Async WebServer\src/AsyncJson.h:70:30: error: 'ArduinoJson::JsonVariant' has no member named 'measureLength'
_contentLength = _root.measureLength();
^
.piolibdeps\ESP Async WebServer\src/AsyncJson.h: In member function 'size_t AsyncJsonResponse::getSize()':
.piolibdeps\ESP Async WebServer\src/AsyncJson.h:75:30: error: '_jsonBuffer' was not declared in this scope
size_t getSize() { return _jsonBuffer.size(); }
^
.piolibdeps\ESP Async WebServer\src/AsyncJson.h: In member function 'virtual size_t AsyncJsonResponse::_fillBuffer(uint8_t*, size_t)':
.piolibdeps\ESP Async WebServer\src/AsyncJson.h:79:13: error: 'ArduinoJson::JsonVariant' has no member named 'printTo'
_root.printTo( dest ) ;
^
D:/GitHub/xoseperez/code/espurna/web.ino: In function 'void _onDiscover(AsyncWebServerRequest*)':
D:/GitHub/xoseperez/code/espurna/web.ino:135:23: error: 'jsonBuffer' was not declared in this scope
if (index == 0) if (_webConfigBuffer) delete _webConfigBuffer;
^
D:/GitHub/xoseperez/code/espurna/web.ino:147:10: error: 'ArduinoJson::JsonObject' has no member named 'printTo'
}
^
D:/GitHub/xoseperez/code/espurna/web.ino: In function 'void _onPostConfigData(AsyncWebServerRequest*, String, size_t, uint8_t*, size_t, bool)':
D:/GitHub/xoseperez/code/espurna/web.ino:255:27: error: 'jsonBuffer' was not declared in this scope
DEBUG_MSG_P(PSTR("[WEB] SSL File: %s - OK\n"), filename);
^
D:/GitHub/xoseperez/code/espurna/web.ino:259:18: error: 'ArduinoJson::JsonObject' has no member named 'success'
}
^
D:/GitHub/xoseperez/code/espurna/web.ino:309:27: error: 'jsonBuffer' was not declared in this scope
Update.printError(DEBUG_PORT);
^
D:/GitHub/xoseperez/code/espurna/web.ino:313:18: error: 'ArduinoJson::JsonObject' has no member named 'success'
}
^
D:/GitHub/xoseperez/code/espurna/wifi.ino: In function 'void _wifiWebSocketOnSend(ArduinoJson::JsonObject&)':
D:/GitHub/xoseperez/code/espurna/wifi.ino:901:52: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonArray& {aka ArduinoJson691_000::ArrayRef&}' from an rvalue of type 'ArduinoJson691_000::ArrayRef'
D:/GitHub/xoseperez/code/espurna/wifi.ino:907:55: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonObject& {aka ArduinoJson691_000::ObjectRef&}' from an rvalue of type 'ArduinoJson691_000::ObjectRef'
D:/GitHub/xoseperez/code/espurna/ws.ino: In function 'bool wsDebugSend(const char*, const char*)':
D:/GitHub/xoseperez/code/espurna/ws.ino:163:23: error: 'jsonBuffer' was not declared in this scope

^
D:/GitHub/xoseperez/code/espurna/ws.ino:167:58: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonObject& {aka ArduinoJson691_000::ObjectRef&}' from an rvalue of type 'ArduinoJson691_000::ObjectRef'
deferredReset(100, CUSTOM_RESET_WEB);
^
D:/GitHub/xoseperez/code/espurna/ws.ino:171:34: error: no matching function for call to 'ArduinoJson691_000::ObjectRef::set(const
char [8], const char*&)'
if (strcmp(action, "reconnect") == 0) {
^
D:/GitHub/xoseperez/code/espurna/ws.ino:171:34: note: candidate is:
In file included from .piolibdeps\ArduinoJson_ID64\src/ArduinoJson.hpp:16:0,
from .piolibdeps\ArduinoJson_ID64\src/ArduinoJson.h:9,
from espurna\config/prototypes.h:2,
from espurna\config/all.h:35,
from D:/GitHub/xoseperez/code/espurna/espurna.ino:43:
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Object/ObjectRef.hpp:166:21: note: bool ArduinoJson691_000::ObjectRef::set(ArduinoJson691_000::ObjectConstRef)
FORCE_INLINE bool set(ObjectConstRef src) {
^
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Object/ObjectRef.hpp:166:21: note:   candidate expects 1 argument, 2 provided
D:/GitHub/xoseperez/code/espurna/ws.ino:175:36: error: no matching function for call to 'ArduinoJson691_000::ObjectRef::set(const
char [7], const char*&)'

^
D:/GitHub/xoseperez/code/espurna/ws.ino:175:36: note: candidate is:
In file included from .piolibdeps\ArduinoJson_ID64\src/ArduinoJson.hpp:16:0,
from .piolibdeps\ArduinoJson_ID64\src/ArduinoJson.h:9,
from espurna\config/prototypes.h:2,
from espurna\config/all.h:35,
from D:/GitHub/xoseperez/code/espurna/espurna.ino:43:
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Object/ObjectRef.hpp:166:21: note: bool ArduinoJson691_000::ObjectRef::set(ArduinoJson691_000::ObjectConstRef)
FORCE_INLINE bool set(ObjectConstRef src) {
^
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Object/ObjectRef.hpp:166:21: note:   candidate expects 1 argument, 2 provided
D:/GitHub/xoseperez/code/espurna/ws.ino: In function 'void _wsParse(AsyncWebSocketClient*, uint8_t*, size_t)':
D:/GitHub/xoseperez/code/espurna/ws.ino:301:23: error: 'jsonBuffer' was not declared in this scope
root["heap"] = getFreeHeap();
^
D:/GitHub/xoseperez/code/espurna/ws.ino:305:15: error: 'ArduinoJson::JsonObject' has no member named 'success'
#if ADC_MODE_VALUE == ADC_VCC
^
D:/GitHub/xoseperez/code/espurna/ws.ino:365:39: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonObject& {aka ArduinoJson691_000::ObjectRef&}' from an rvalue of type 'ArduinoJson691_000::enable_if<true, ArduinoJson691_000::MemberProxy<const ArduinoJson691_000::ObjectRef&, const char*> >::type {aka ArduinoJson691_000::MemberProxy<const ArduinoJson691_000::ObjectRef&, const char*>}'
root["free_size"] = ESP.getFreeSketchSpace();
^
D:/GitHub/xoseperez/code/espurna/ws.ino:367:18: error: 'ArduinoJson::JsonObject' has no member named 'success'
root["core"] = getCoreVersion();
^
D:/GitHub/xoseperez/code/espurna/ws.ino:415:39: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonObject& {aka ArduinoJson691_000::ObjectRef&}' from an rvalue of type 'ArduinoJson691_000::enable_if<true, ArduinoJson691_000::MemberProxy<const ArduinoJson691_000::ObjectRef&, const char*> >::type {aka ArduinoJson691_000::MemberProxy<const ArduinoJson691_000::ObjectRef&, const char*>}'
if (changePassword) {
^
D:/GitHub/xoseperez/code/espurna/ws.ino:417:16: error: 'ArduinoJson::JsonObject' has no member named 'success'
wsSend(root);
^
D:/GitHub/xoseperez/code/espurna/ws.ino:443:29: error: conversion from '<unresolved overloaded function type>' to non-scalar type
'String' requested
IPAddress ip = client->remoteIP();
^
D:/GitHub/xoseperez/code/espurna/ws.ino:445:37: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonVariant& {aka ArduinoJson691_000::VariantRef&}' from an rvalue of type '<unresolved overloaded function type>'
_wsStart(client->id());
^
D:/GitHub/xoseperez/code/espurna/ws.ino:453:43: error: no matching function for call to 'ArduinoJson691_000::VariantRef::is()'
}
^
D:/GitHub/xoseperez/code/espurna/ws.ino:453:43: note: candidates are:
In file included from .piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/ArrayIterator.hpp:8:0,
from .piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/ArrayRef.hpp:9,
from .piolibdeps\ArduinoJson_ID64\src/ArduinoJson.hpp:15,
from .piolibdeps\ArduinoJson_ID64\src/ArduinoJson.h:9,
from espurna\config/prototypes.h:2,
from espurna\config/all.h:35,
from D:/GitHub/xoseperez/code/espurna/espurna.ino:43:
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:46:70: note: template<class T> typename ArduinoJson691_000::enable_if<ArduinoJson691_000::is_integral<T>::value, bool>::type ArduinoJson691_000::VariantRefBase<TData>::is() const [with T = T; TData = ArduinoJson691_000::VariantData]
FORCE_INLINE typename enable_if<is_integral<T>::value, bool>::type is()
^
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:46:70: note:   template argument deduction/substitution failed:
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp: In substitution of 'template<class T> typename ArduinoJson691_000::enable_if<ArduinoJson691_000::is_integral<T>::value, bool>::type ArduinoJson691_000::VariantRefBase<TData>::is() const [with T = T; TData = ArduinoJson691_000::VariantData] [with T = ArduinoJson691_000::ArrayRef&]':
D:/GitHub/xoseperez/code/espurna/ws.ino:453:43:   required from here
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:46:70: error: no type named 'type' in 'struct ArduinoJson691_000::enable_if<false, bool>'
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:54:76: note: template<class T> typename ArduinoJson691_000::enable_if<ArduinoJson691_000::is_floating_point<T>::value, bool>::type ArduinoJson691_000::VariantRefBase<TData>::is() const [with T = T; TData = ArduinoJson691_000::VariantData]
FORCE_INLINE typename enable_if<is_floating_point<T>::value, bool>::type is()
^
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:54:76: note:   template argument deduction/substitution failed:
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp: In substitution of 'template<class T> typename ArduinoJson691_000::enable_if<ArduinoJson691_000::is_floating_point<T>::value, bool>::type ArduinoJson691_000::VariantRefBase<TData>::is() const [with T = T; TData = ArduinoJson691_000::VariantData] [with T = ArduinoJson691_000::ArrayRef&]':
D:/GitHub/xoseperez/code/espurna/ws.ino:453:43:   required from here
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:54:76: error: no type named 'type' in 'struct ArduinoJson691_000::enable_if<false, bool>'
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:61:72: note: template<class T> typename ArduinoJson691_000::enable_if<ArduinoJson691_000::is_same<T, bool>::value, bool>::type ArduinoJson691_000::VariantRefBase<TData>::is() const [with T = T; TData = ArduinoJson691_000::VariantData]
FORCE_INLINE typename enable_if<is_same<T, bool>::value, bool>::type is()
^
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:61:72: note:   template argument deduction/substitution failed:
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp: In substitution of 'template<class T> typename ArduinoJson691_000::enable_if<ArduinoJson691_000::is_same<T, bool>::value, bool>::type ArduinoJson691_000::VariantRefBase<TData>::is()
const [with T = T; TData = ArduinoJson691_000::VariantData] [with T = ArduinoJson691_000::ArrayRef&]':
D:/GitHub/xoseperez/code/espurna/ws.ino:453:43:   required from here
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:61:72: error: no type named 'type' in 'struct ArduinoJson691_000::enable_if<false, bool>'
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:75:3: note: template<class T> typename ArduinoJson691_000::enable_if<((ArduinoJson691_000::is_same<T, const char*>::value || ArduinoJson691_000::is_same<T, char*>::value) || ArduinoJson691_000::IsWriteableString<T>::value), bool>::type ArduinoJson691_000::VariantRefBase<TData>::is() const [with T = T; TData = ArduinoJson691_000::VariantData]
is() const {
^
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:75:3: note:   template argument deduction/substitution failed:
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp: In substitution of 'template<class T> typename ArduinoJson691_000::enable_if<((ArduinoJson691_000::is_same<T, const char*>::value || ArduinoJson691_000::is_same<T, char*>::value) ||
ArduinoJson691_000::IsWriteableString<T>::value), bool>::type ArduinoJson691_000::VariantRefBase<TData>::is() const [with T = T; TData = ArduinoJson691_000::VariantData] [with T = ArduinoJson691_000::ArrayRef&]':
D:/GitHub/xoseperez/code/espurna/ws.ino:453:43:   required from here
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:75:3: error: no type named 'type' in 'struct ArduinoJson691_000::enable_if<false, bool>'
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:84:3: note: template<class T> typename ArduinoJson691_000::enable_if<ArduinoJson691_000::is_same<typename ArduinoJson691_000::remove_const<T>::type, ArduinoJson691_000::ArrayRef>::value, bool>::type ArduinoJson691_000::VariantRefBase<TData>::is() const [with T = T; TData = ArduinoJson691_000::VariantData]
is() const {
^
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:84:3: note:   template argument deduction/substitution failed:
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp: In substitution of 'template<class T> typename ArduinoJson691_000::enable_if<ArduinoJson691_000::is_same<typename ArduinoJson691_000::remove_const<T>::type, ArduinoJson691_000::ArrayRef>::value, bool>::type ArduinoJson691_000::VariantRefBase<TData>::is() const [with T = T; TData = ArduinoJson691_000::VariantData] [with T = ArduinoJson691_000::ArrayRef&]':
D:/GitHub/xoseperez/code/espurna/ws.ino:453:43:   required from here
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:84:3: error: no type named 'type' in 'struct ArduinoJson691_000::enable_if<false, bool>'
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:93:3: note: template<class T> typename ArduinoJson691_000::enable_if<ArduinoJson691_000::is_same<typename ArduinoJson691_000::remove_const<T>::type, ArduinoJson691_000::ObjectRef>::value, bool>::type ArduinoJson691_000::VariantRefBase<TData>::is() const [with T = T; TData = ArduinoJson691_000::VariantData]
is() const {
^
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:93:3: note:   template argument deduction/substitution failed:
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp: In substitution of 'template<class T> typename ArduinoJson691_000::enable_if<ArduinoJson691_000::is_same<typename ArduinoJson691_000::remove_const<T>::type, ArduinoJson691_000::ObjectRef>::value, bool>::type ArduinoJson691_000::VariantRefBase<TData>::is() const [with T = T; TData = ArduinoJson691_000::VariantData] [with T = ArduinoJson691_000::ArrayRef&]':
D:/GitHub/xoseperez/code/espurna/ws.ino:453:43:   required from here
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:93:3: error: no type named 'type' in 'struct ArduinoJson691_000::enable_if<false, bool>'
D:/GitHub/xoseperez/code/espurna/ws.ino:513:38: error: no matching function for call to 'ArduinoJson691_000::VariantRef::is()'
_ws.textAll(payload);
^
D:/GitHub/xoseperez/code/espurna/ws.ino:513:38: note: candidates are:
In file included from .piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/ArrayIterator.hpp:8:0,
from .piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/ArrayRef.hpp:9,
from .piolibdeps\ArduinoJson_ID64\src/ArduinoJson.hpp:15,
from .piolibdeps\ArduinoJson_ID64\src/ArduinoJson.h:9,
from espurna\config/prototypes.h:2,
from espurna\config/all.h:35,
from D:/GitHub/xoseperez/code/espurna/espurna.ino:43:
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:46:70: note: template<class T> typename ArduinoJson691_000::enable_if<ArduinoJson691_000::is_integral<T>::value, bool>::type ArduinoJson691_000::VariantRefBase<TData>::is() const [with T = T; TData = ArduinoJson691_000::VariantData]
FORCE_INLINE typename enable_if<is_integral<T>::value, bool>::type is()
^
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:46:70: note:   template argument deduction/substitution failed:
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp: In substitution of 'template<class T> typename ArduinoJson691_000::enable_if<ArduinoJson691_000::is_integral<T>::value, bool>::type ArduinoJson691_000::VariantRefBase<TData>::is() const [with T = T; TData = ArduinoJson691_000::VariantData] [with T = ArduinoJson691_000::ArrayRef&]':
D:/GitHub/xoseperez/code/espurna/ws.ino:513:38:   required from here
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:46:70: error: no type named 'type' in 'struct ArduinoJson691_000::enable_if<false, bool>'
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:54:76: note: template<class T> typename ArduinoJson691_000::enable_if<ArduinoJson691_000::is_floating_point<T>::value, bool>::type ArduinoJson691_000::VariantRefBase<TData>::is() const [with T = T; TData = ArduinoJson691_000::VariantData]
FORCE_INLINE typename enable_if<is_floating_point<T>::value, bool>::type is()
^
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:54:76: note:   template argument deduction/substitution failed:
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp: In substitution of 'template<class T> typename ArduinoJson691_000::enable_if<ArduinoJson691_000::is_floating_point<T>::value, bool>::type ArduinoJson691_000::VariantRefBase<TData>::is() const [with T = T; TData = ArduinoJson691_000::VariantData] [with T = ArduinoJson691_000::ArrayRef&]':
D:/GitHub/xoseperez/code/espurna/ws.ino:513:38:   required from here
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:54:76: error: no type named 'type' in 'struct ArduinoJson691_000::enable_if<false, bool>'
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:61:72: note: template<class T> typename ArduinoJson691_000::enable_if<ArduinoJson691_000::is_same<T, bool>::value, bool>::type ArduinoJson691_000::VariantRefBase<TData>::is() const [with T = T; TData = ArduinoJson691_000::VariantData]
FORCE_INLINE typename enable_if<is_same<T, bool>::value, bool>::type is()
^
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:61:72: note:   template argument deduction/substitution failed:
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp: In substitution of 'template<class T> typename ArduinoJson691_000::enable_if<ArduinoJson691_000::is_same<T, bool>::value, bool>::type ArduinoJson691_000::VariantRefBase<TData>::is()
const [with T = T; TData = ArduinoJson691_000::VariantData] [with T = ArduinoJson691_000::ArrayRef&]':
D:/GitHub/xoseperez/code/espurna/ws.ino:513:38:   required from here
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:61:72: error: no type named 'type' in 'struct ArduinoJson691_000::enable_if<false, bool>'
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:75:3: note: template<class T> typename ArduinoJson691_000::enable_if<((ArduinoJson691_000::is_same<T, const char*>::value || ArduinoJson691_000::is_same<T, char*>::value) || ArduinoJson691_000::IsWriteableString<T>::value), bool>::type ArduinoJson691_000::VariantRefBase<TData>::is() const [with T = T; TData = ArduinoJson691_000::VariantData]
is() const {
^
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:75:3: note:   template argument deduction/substitution failed:
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp: In substitution of 'template<class T> typename ArduinoJson691_000::enable_if<((ArduinoJson691_000::is_same<T, const char*>::value || ArduinoJson691_000::is_same<T, char*>::value) ||
ArduinoJson691_000::IsWriteableString<T>::value), bool>::type ArduinoJson691_000::VariantRefBase<TData>::is() const [with T = T; TData = ArduinoJson691_000::VariantData] [with T = ArduinoJson691_000::ArrayRef&]':
D:/GitHub/xoseperez/code/espurna/ws.ino:513:38:   required from here
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:75:3: error: no type named 'type' in 'struct ArduinoJson691_000::enable_if<false, bool>'
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:84:3: note: template<class T> typename ArduinoJson691_000::enable_if<ArduinoJson691_000::is_same<typename ArduinoJson691_000::remove_const<T>::type, ArduinoJson691_000::ArrayRef>::value, bool>::type ArduinoJson691_000::VariantRefBase<TData>::is() const [with T = T; TData = ArduinoJson691_000::VariantData]
is() const {
^
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:84:3: note:   template argument deduction/substitution failed:
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp: In substitution of 'template<class T> typename ArduinoJson691_000::enable_if<ArduinoJson691_000::is_same<typename ArduinoJson691_000::remove_const<T>::type, ArduinoJson691_000::ArrayRef>::value, bool>::type ArduinoJson691_000::VariantRefBase<TData>::is() const [with T = T; TData = ArduinoJson691_000::VariantData] [with T = ArduinoJson691_000::ArrayRef&]':
D:/GitHub/xoseperez/code/espurna/ws.ino:513:38:   required from here
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:84:3: error: no type named 'type' in 'struct ArduinoJson691_000::enable_if<false, bool>'
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:93:3: note: template<class T> typename ArduinoJson691_000::enable_if<ArduinoJson691_000::is_same<typename ArduinoJson691_000::remove_const<T>::type, ArduinoJson691_000::ObjectRef>::value, bool>::type ArduinoJson691_000::VariantRefBase<TData>::is() const [with T = T; TData = ArduinoJson691_000::VariantData]
is() const {
^
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:93:3: note:   template argument deduction/substitution failed:
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp: In substitution of 'template<class T> typename ArduinoJson691_000::enable_if<ArduinoJson691_000::is_same<typename ArduinoJson691_000::remove_const<T>::type, ArduinoJson691_000::ObjectRef>::value, bool>::type ArduinoJson691_000::VariantRefBase<TData>::is() const [with T = T; TData = ArduinoJson691_000::VariantData] [with T = ArduinoJson691_000::ArrayRef&]':
D:/GitHub/xoseperez/code/espurna/ws.ino:513:38:   required from here
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:93:3: error: no type named 'type' in 'struct ArduinoJson691_000::enable_if<false, bool>'
D:/GitHub/xoseperez/code/espurna/ws.ino: In function 'void wsSend(ArduinoJson::JsonObject&)':
D:/GitHub/xoseperez/code/espurna/ws.ino:765:23: error: 'ArduinoJson::JsonObject' has no member named 'measureLength'
D:/GitHub/xoseperez/code/espurna/ws.ino:773:14: error: 'ArduinoJson::JsonObject' has no member named 'printTo'
D:/GitHub/xoseperez/code/espurna/ws.ino: In function 'void wsSend(uint32_t, ArduinoJson::JsonObject&)':
D:/GitHub/xoseperez/code/espurna/ws.ino:791:23: error: 'ArduinoJson::JsonObject' has no member named 'measureLength'
D:/GitHub/xoseperez/code/espurna/ws.ino:799:14: error: 'ArduinoJson::JsonObject' has no member named 'printTo'
D:/GitHub/xoseperez/code/espurna/ws.ino: In function 'void _wsStart(uint32_t)':
D:/GitHub/xoseperez/code/espurna/ws.ino:823:23: error: 'jsonBuffer' was not declared in this scope
D:/GitHub/xoseperez/code/espurna/ws.ino: In function 'void wsSend(ws_on_send_callback_f)':
D:/GitHub/xoseperez/code/espurna/ws.ino:1005:27: error: 'jsonBuffer' was not declared in this scope
D:/GitHub/xoseperez/code/espurna/ws.ino: In function 'void wsSend(uint32_t, ws_on_send_callback_f)':
D:/GitHub/xoseperez/code/espurna/ws.ino:1057:23: error: 'jsonBuffer' was not declared in this scope
D:/GitHub/xoseperez/code/espurna/ws.ino:1065:23: error: 'ArduinoJson::JsonObject' has no member named 'measureLength'
D:/GitHub/xoseperez/code/espurna/ws.ino:1073:14: error: 'ArduinoJson::JsonObject' has no member named 'printTo'
D:/GitHub/xoseperez/code/espurna/sensor.ino: In instantiation of 'void _sensorWebSocketMagnitudes(ArduinoJson::JsonObject&, T) [with T = const char*; ArduinoJson::JsonObject = ArduinoJson691_000::ObjectRef]':
D:/GitHub/xoseperez/code/espurna/domoticz.ino:373:47:   required from here
D:/GitHub/xoseperez/code/espurna/sensor.ino:227:55: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonObject& {aka ArduinoJson691_000::ObjectRef&}' from an rvalue of type 'ArduinoJson691_000::ObjectRef'
#if ECH1560_SUPPORT
^
D:/GitHub/xoseperez/code/espurna/sensor.ino:233:52: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonArray& {aka ArduinoJson691_000::ArrayRef&}' from an rvalue of type 'ArduinoJson691_000::ArrayRef'
#if PZEM004T_SUPPORT
^
D:/GitHub/xoseperez/code/espurna/sensor.ino:235:52: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonArray& {aka ArduinoJson691_000::ArrayRef&}' from an rvalue of type 'ArduinoJson691_000::ArrayRef'
root["pzemVisible"] = 1;
^
D:/GitHub/xoseperez/code/espurna/sensor.ino:237:54: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonArray& {aka ArduinoJson691_000::ArrayRef&}' from an rvalue of type 'ArduinoJson691_000::ArrayRef'
}
^
D:/GitHub/xoseperez/code/espurna/sensor.ino:239:50: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonArray& {aka ArduinoJson691_000::ArrayRef&}' from an rvalue of type 'ArduinoJson691_000::ArrayRef'

^
In file included from .piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/ArrayIterator.hpp:8:0,
from .piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/ArrayRef.hpp:9,
from .piolibdeps\ArduinoJson_ID64\src/ArduinoJson.hpp:15,
from .piolibdeps\ArduinoJson_ID64\src/ArduinoJson.h:9,
from espurna\config/prototypes.h:2,
from espurna\config/all.h:35,
from D:/GitHub/xoseperez/code/espurna/espurna.ino:43:
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp: In instantiation of 'typename ArduinoJson691_000::enable_if<(((! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ArrayRef>::value) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ObjectRef>::value)) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::VariantRef>::value)), typename ArduinoJson691_000::VariantAs<T>::type>::type ArduinoJson691_000::VariantRef::as() const [with T = ArduinoJson691_000::ArrayRef&; typename ArduinoJson691_000::enable_if<(((! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ArrayRef>::value) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ObjectRef>::value)) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::VariantRef>::value)), typename ArduinoJson691_000::VariantAs<T>::type>::type = ArduinoJson691_000::ArrayRef&]':
D:/GitHub/xoseperez/code/espurna/ws.ino:455:58:   required from here
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:237:30: error: no matching function for call to 'variantAs(ArduinoJson691_000::VariantData* const&)'
return variantAs<T>(_data);
^
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:237:30: note: candidates are:
In file included from .piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/../Operators/VariantOr.hpp:9:0,
from .piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/../Operators/VariantOperators.hpp:9,
from .piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:14,
from .piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/ArrayIterator.hpp:8,
from .piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/ArrayRef.hpp:9,
from .piolibdeps\ArduinoJson_ID64\src/ArduinoJson.hpp:15,
from .piolibdeps\ArduinoJson_ID64\src/ArduinoJson.h:9,
from espurna\config/prototypes.h:2,
from espurna\config/all.h:35,
from D:/GitHub/xoseperez/code/espurna/espurna.ino:43:
d:\github\xoseperez\code\.piolibdeps\arduinojson_id64\src\arduinojson\variant\variantas.hpp:55:59: note: template<class T> typename ArduinoJson691_000::enable_if<ArduinoJson691_000::is_integral<T>::value, T>::type ArduinoJson691_000::variantAs(const ArduinoJson691_000::VariantData*)
inline typename enable_if<is_integral<T>::value, T>::type variantAs(
^
Compiling .pioenvs\itead-sonoff-th\lib537\ESP8266WiFi\WiFiUdp.cpp.o
d:\github\xoseperez\code\.piolibdeps\arduinojson_id64\src\arduinojson\variant\variantas.hpp:55:59: note:   template argument deduction/substitution failed:
d:\github\xoseperez\code\.piolibdeps\arduinojson_id64\src\arduinojson\variant\variantas.hpp: In substitution of 'template<class T> typename ArduinoJson691_000::enable_if<ArduinoJson691_000::is_integral<T>::value, T>::type ArduinoJson691_000::variantAs(const ArduinoJson691_000::VariantData*) [with T = ArduinoJson691_000::ArrayRef&]':
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:237:30:   required from 'typename ArduinoJson691_000::enable_if<(((! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ArrayRef>::value) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ObjectRef>::value)) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::VariantRef>::value)), typename ArduinoJson691_000::VariantAs<T>::type>::type ArduinoJson691_000::VariantRef::as() const [with T = ArduinoJson691_000::ArrayRef&; typename ArduinoJson691_000::enable_if<(((! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ArrayRef>::value) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ObjectRef>::value)) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::VariantRef>::value)), typename ArduinoJson691_000::VariantAs<T>::type>::type = ArduinoJson691_000::ArrayRef&]'
D:/GitHub/xoseperez/code/espurna/ws.ino:455:58:   required from here
d:\github\xoseperez\code\.piolibdeps\arduinojson_id64\src\arduinojson\variant\variantas.hpp:55:59: error: no type named 'type' in
'struct ArduinoJson691_000::enable_if<false, ArduinoJson691_000::ArrayRef&>'
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp: In instantiation of 'typename ArduinoJson691_000::enable_if<(((! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ArrayRef>::value) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ObjectRef>::value)) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::VariantRef>::value)), typename ArduinoJson691_000::VariantAs<T>::type>::type ArduinoJson691_000::VariantRef::as() const [with T = ArduinoJson691_000::ArrayRef&; typename ArduinoJson691_000::enable_if<(((! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ArrayRef>::value) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ObjectRef>::value)) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::VariantRef>::value)), typename ArduinoJson691_000::VariantAs<T>::type>::type = ArduinoJson691_000::ArrayRef&]':
D:/GitHub/xoseperez/code/espurna/ws.ino:455:58:   required from here
d:\github\xoseperez\code\.piolibdeps\arduinojson_id64\src\arduinojson\variant\variantas.hpp:61:61: note: template<class T> typename ArduinoJson691_000::enable_if<ArduinoJson691_000::is_same<T, bool>::value, T>::type ArduinoJson691_000::variantAs(const ArduinoJson691_000::VariantData*)
inline typename enable_if<is_same<T, bool>::value, T>::type variantAs(
^
d:\github\xoseperez\code\.piolibdeps\arduinojson_id64\src\arduinojson\variant\variantas.hpp:61:61: note:   template argument deduction/substitution failed:
d:\github\xoseperez\code\.piolibdeps\arduinojson_id64\src\arduinojson\variant\variantas.hpp: In substitution of 'template<class T> typename ArduinoJson691_000::enable_if<ArduinoJson691_000::is_same<T, bool>::value, T>::type ArduinoJson691_000::variantAs(const
ArduinoJson691_000::VariantData*) [with T = ArduinoJson691_000::ArrayRef&]':
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:237:30:   required from 'typename ArduinoJson691_000::enable_if<(((! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ArrayRef>::value) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ObjectRef>::value)) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::VariantRef>::value)), typename ArduinoJson691_000::VariantAs<T>::type>::type ArduinoJson691_000::VariantRef::as() const [with T = ArduinoJson691_000::ArrayRef&; typename ArduinoJson691_000::enable_if<(((! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ArrayRef>::value) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ObjectRef>::value)) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::VariantRef>::value)), typename ArduinoJson691_000::VariantAs<T>::type>::type = ArduinoJson691_000::ArrayRef&]'
D:/GitHub/xoseperez/code/espurna/ws.ino:455:58:   required from here
d:\github\xoseperez\code\.piolibdeps\arduinojson_id64\src\arduinojson\variant\variantas.hpp:61:61: error: no type named 'type' in
'struct ArduinoJson691_000::enable_if<false, ArduinoJson691_000::ArrayRef&>'
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp: In instantiation of 'typename ArduinoJson691_000::enable_if<(((! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ArrayRef>::value) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ObjectRef>::value)) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::VariantRef>::value)), typename ArduinoJson691_000::VariantAs<T>::type>::type ArduinoJson691_000::VariantRef::as() const [with T = ArduinoJson691_000::ArrayRef&; typename ArduinoJson691_000::enable_if<(((! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ArrayRef>::value) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ObjectRef>::value)) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::VariantRef>::value)), typename ArduinoJson691_000::VariantAs<T>::type>::type = ArduinoJson691_000::ArrayRef&]':
D:/GitHub/xoseperez/code/espurna/ws.ino:455:58:   required from here
d:\github\xoseperez\code\.piolibdeps\arduinojson_id64\src\arduinojson\variant\variantas.hpp:67:65: note: template<class T> typename ArduinoJson691_000::enable_if<ArduinoJson691_000::is_floating_point< <template-parameter-1-1> >::value, T>::type ArduinoJson691_000::variantAs(const ArduinoJson691_000::VariantData*)
inline typename enable_if<is_floating_point<T>::value, T>::type variantAs(
^
d:\github\xoseperez\code\.piolibdeps\arduinojson_id64\src\arduinojson\variant\variantas.hpp:67:65: note:   template argument deduction/substitution failed:
d:\github\xoseperez\code\.piolibdeps\arduinojson_id64\src\arduinojson\variant\variantas.hpp: In substitution of 'template<class T> typename ArduinoJson691_000::enable_if<ArduinoJson691_000::is_floating_point< <template-parameter-1-1> >::value, T>::type ArduinoJson691_000::variantAs(const ArduinoJson691_000::VariantData*) [with T = ArduinoJson691_000::ArrayRef&]':
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:237:30:   required from 'typename ArduinoJson691_000::enable_if<(((! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ArrayRef>::value) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ObjectRef>::value)) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::VariantRef>::value)), typename ArduinoJson691_000::VariantAs<T>::type>::type ArduinoJson691_000::VariantRef::as() const [with T = ArduinoJson691_000::ArrayRef&; typename ArduinoJson691_000::enable_if<(((! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ArrayRef>::value) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ObjectRef>::value)) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::VariantRef>::value)), typename ArduinoJson691_000::VariantAs<T>::type>::type = ArduinoJson691_000::ArrayRef&]'
D:/GitHub/xoseperez/code/espurna/ws.ino:455:58:   required from here
d:\github\xoseperez\code\.piolibdeps\arduinojson_id64\src\arduinojson\variant\variantas.hpp:67:65: error: no type named 'type' in
'struct ArduinoJson691_000::enable_if<false, ArduinoJson691_000::ArrayRef&>'
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp: In instantiation of 'typename ArduinoJson691_000::enable_if<(((! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ArrayRef>::value) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ObjectRef>::value)) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::VariantRef>::value)), typename ArduinoJson691_000::VariantAs<T>::type>::type ArduinoJson691_000::VariantRef::as() const [with T = ArduinoJson691_000::ArrayRef&; typename ArduinoJson691_000::enable_if<(((! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ArrayRef>::value) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ObjectRef>::value)) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::VariantRef>::value)), typename ArduinoJson691_000::VariantAs<T>::type>::type = ArduinoJson691_000::ArrayRef&]':
D:/GitHub/xoseperez/code/espurna/ws.ino:455:58:   required from here
d:\github\xoseperez\code\.piolibdeps\arduinojson_id64\src\arduinojson\variant\variantas.hpp:76:1: note: template<class T> typename ArduinoJson691_000::enable_if<(ArduinoJson691_000::is_same<T, const char*>::value || ArduinoJson691_000::is_same<T, char*>::value), const char*>::type ArduinoJson691_000::variantAs(const ArduinoJson691_000::VariantData*)
variantAs(const VariantData* _data) {
^
d:\github\xoseperez\code\.piolibdeps\arduinojson_id64\src\arduinojson\variant\variantas.hpp:76:1: note:   template argument deduction/substitution failed:
d:\github\xoseperez\code\.piolibdeps\arduinojson_id64\src\arduinojson\variant\variantas.hpp: In substitution of 'template<class T> typename ArduinoJson691_000::enable_if<(ArduinoJson691_000::is_same<T, const char*>::value || ArduinoJson691_000::is_same<T, char*>::value), const char*>::type ArduinoJson691_000::variantAs(const ArduinoJson691_000::VariantData*) [with T = ArduinoJson691_000::ArrayRef&]':
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:237:30:   required from 'typename ArduinoJson691_000::enable_if<(((! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ArrayRef>::value) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ObjectRef>::value)) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::VariantRef>::value)), typename ArduinoJson691_000::VariantAs<T>::type>::type ArduinoJson691_000::VariantRef::as() const [with T = ArduinoJson691_000::ArrayRef&; typename ArduinoJson691_000::enable_if<(((! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ArrayRef>::value) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ObjectRef>::value)) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::VariantRef>::value)), typename ArduinoJson691_000::VariantAs<T>::type>::type = ArduinoJson691_000::ArrayRef&]'
D:/GitHub/xoseperez/code/espurna/ws.ino:455:58:   required from here
d:\github\xoseperez\code\.piolibdeps\arduinojson_id64\src\arduinojson\variant\variantas.hpp:76:1: error: no type named 'type' in 'struct ArduinoJson691_000::enable_if<false, const char*>'
In file included from .piolibdeps\ArduinoJson_ID64\src/ArduinoJson.hpp:28:0,
from .piolibdeps\ArduinoJson_ID64\src/ArduinoJson.h:9,
from espurna\config/prototypes.h:2,
from espurna\config/all.h:35,
from D:/GitHub/xoseperez/code/espurna/espurna.ino:43:
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp: In instantiation of 'typename ArduinoJson691_000::enable_if<(((! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ArrayRef>::value) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ObjectRef>::value)) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::VariantRef>::value)), typename ArduinoJson691_000::VariantAs<T>::type>::type ArduinoJson691_000::VariantRef::as() const [with T = ArduinoJson691_000::ArrayRef&; typename ArduinoJson691_000::enable_if<(((! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ArrayRef>::value) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ObjectRef>::value)) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::VariantRef>::value)), typename ArduinoJson691_000::VariantAs<T>::type>::type = ArduinoJson691_000::ArrayRef&]':
D:/GitHub/xoseperez/code/espurna/ws.ino:455:58:   required from here
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Variant/VariantAsImpl.hpp:14:70: note: template<class T> typename ArduinoJson691_000::enable_if<ArduinoJson691_000::is_same<ArduinoJson691_000::ArrayConstRef, T>::value, T>::type ArduinoJson691_000::variantAs(const
ArduinoJson691_000::VariantData*)
inline typename enable_if<is_same<ArrayConstRef, T>::value, T>::type variantAs(
^
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Variant/VariantAsImpl.hpp:14:70: note:   template argument deduction/substitution failed:
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Variant/VariantAsImpl.hpp: In substitution of 'template<class T> typename ArduinoJson691_000::enable_if<ArduinoJson691_000::is_same<ArduinoJson691_000::ArrayConstRef, T>::value, T>::type ArduinoJson691_000::variantAs(const ArduinoJson691_000::VariantData*) [with T = ArduinoJson691_000::ArrayRef&]':
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:237:30:   required from 'typename ArduinoJson691_000::enable_if<(((! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ArrayRef>::value) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ObjectRef>::value)) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::VariantRef>::value)), typename ArduinoJson691_000::VariantAs<T>::type>::type ArduinoJson691_000::VariantRef::as() const [with T = ArduinoJson691_000::ArrayRef&; typename ArduinoJson691_000::enable_if<(((! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ArrayRef>::value) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ObjectRef>::value)) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::VariantRef>::value)), typename ArduinoJson691_000::VariantAs<T>::type>::type = ArduinoJson691_000::ArrayRef&]'
D:/GitHub/xoseperez/code/espurna/ws.ino:455:58:   required from here
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Variant/VariantAsImpl.hpp:14:70: error: no type named 'type' in 'struct ArduinoJson691_000::enable_if<false, ArduinoJson691_000::ArrayRef&>'
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp: In instantiation of 'typename ArduinoJson691_000::enable_if<(((! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ArrayRef>::value) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ObjectRef>::value)) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::VariantRef>::value)), typename ArduinoJson691_000::VariantAs<T>::type>::type ArduinoJson691_000::VariantRef::as() const [with T = ArduinoJson691_000::ArrayRef&; typename ArduinoJson691_000::enable_if<(((! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ArrayRef>::value) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ObjectRef>::value)) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::VariantRef>::value)), typename ArduinoJson691_000::VariantAs<T>::type>::type = ArduinoJson691_000::ArrayRef&]':
D:/GitHub/xoseperez/code/espurna/ws.ino:455:58:   required from here
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Variant/VariantAsImpl.hpp:20:71: note: template<class T> typename ArduinoJson691_000::enable_if<ArduinoJson691_000::is_same<ArduinoJson691_000::ObjectConstRef, T>::value, T>::type ArduinoJson691_000::variantAs(const ArduinoJson691_000::VariantData*)
inline typename enable_if<is_same<ObjectConstRef, T>::value, T>::type variantAs(
^
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Variant/VariantAsImpl.hpp:20:71: note:   template argument deduction/substitution failed:
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Variant/VariantAsImpl.hpp: In substitution of 'template<class T> typename ArduinoJson691_000::enable_if<ArduinoJson691_000::is_same<ArduinoJson691_000::ObjectConstRef, T>::value, T>::type ArduinoJson691_000::variantAs(const ArduinoJson691_000::VariantData*) [with T = ArduinoJson691_000::ArrayRef&]':
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:237:30:   required from 'typename ArduinoJson691_000::enable_if<(((! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ArrayRef>::value) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ObjectRef>::value)) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::VariantRef>::value)), typename ArduinoJson691_000::VariantAs<T>::type>::type ArduinoJson691_000::VariantRef::as() const [with T = ArduinoJson691_000::ArrayRef&; typename ArduinoJson691_000::enable_if<(((! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ArrayRef>::value) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ObjectRef>::value)) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::VariantRef>::value)), typename ArduinoJson691_000::VariantAs<T>::type>::type = ArduinoJson691_000::ArrayRef&]'
D:/GitHub/xoseperez/code/espurna/ws.ino:455:58:   required from here
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Variant/VariantAsImpl.hpp:20:71: error: no type named 'type' in 'struct ArduinoJson691_000::enable_if<false, ArduinoJson691_000::ArrayRef&>'
.Cpiolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp: In instantiation of 'typename ArduinoJson691_000::enable_if<(((! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ArrayRef>::value) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ObjectRef>::value)) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::VariantRef>::value)), typename ArduinoJson691_000::VariantAs<T>::type>::type ArduinoJson691_000::VariantRef::as() const [with T = ArduinoJson691_000::ArrayRef&; typename ArduinoJson691_000::enable_if<(((! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ArrayRef>::value) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ObjectRef>::value)) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::VariantRef>::value)), typename ArduinoJson691_000::VariantAs<T>::type>::type = ArduinoJson691_000::ArrayRef&]':ompiling .pioenvs\itead-sonoff-th\lib959\ESPAsyncTCP\AsyncPrinter.cpp.o

D:/GitHub/xoseperez/code/espurna/ws.ino:455:58:   required from here
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Variant/VariantAsImpl.hpp:27:1: note: template<class T> typename ArduinoJson691_000::enable_if<ArduinoJson691_000::is_same<ArduinoJson691_000::VariantConstRef, T>::value, T>::type ArduinoJson691_000::variantAs(const ArduinoJson691_000::VariantData*)
variantAs(const VariantData* _data) {
^
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Variant/VariantAsImpl.hpp:27:1: note:   template argument deduction/substitution failed:
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Variant/VariantAsImpl.hpp: In substitution of 'template<class T> typename ArduinoJson691_000::enable_if<ArduinoJson691_000::is_same<ArduinoJson691_000::VariantConstRef, T>::value, T>::type ArduinoJson691_000::variantAs(const ArduinoJson691_000::VariantData*) [with T = ArduinoJson691_000::ArrayRef&]':
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:237:30:   required from 'typename ArduinoJson691_000::enable_if<(((! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ArrayRef>::value) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ObjectRef>::value)) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::VariantRef>::value)), typename ArduinoJson691_000::VariantAs<T>::type>::type ArduinoJson691_000::VariantRef::as() const [with T = ArduinoJson691_000::ArrayRef&; typename ArduinoJson691_000::enable_if<(((! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ArrayRef>::value) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ObjectRef>::value)) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::VariantRef>::value)), typename ArduinoJson691_000::VariantAs<T>::type>::type = ArduinoJson691_000::ArrayRef&]'
D:/GitHub/xoseperez/code/espurna/ws.ino:455:58:   required from here
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Variant/VariantAsImpl.hpp:27:1: error: no type named 'type' in 'struct ArduinoJson691_000::enable_if<false, ArduinoJson691_000::ArrayRef&>'
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp: In instantiation of 'typename ArduinoJson691_000::enable_if<(((! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ArrayRef>::value) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ObjectRef>::value)) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::VariantRef>::value)), typename ArduinoJson691_000::VariantAs<T>::type>::type ArduinoJson691_000::VariantRef::as() const [with T = ArduinoJson691_000::ArrayRef&; typename ArduinoJson691_000::enable_if<(((! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ArrayRef>::value) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ObjectRef>::value)) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::VariantRef>::value)), typename ArduinoJson691_000::VariantAs<T>::type>::type = ArduinoJson691_000::ArrayRef&]':
D:/GitHub/xoseperez/code/espurna/ws.ino:455:58:   required from here
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Variant/VariantAsImpl.hpp:32:65: note: template<class T> typename ArduinoJson691_000::enable_if<ArduinoJson691_000::IsWriteableString< <template-parameter-1-1> >::value, T>::type ArduinoJson691_000::variantAs(const
ArduinoJson691_000::VariantData*)
inline typename enable_if<IsWriteableString<T>::value, T>::type variantAs(
^
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Variant/VariantAsImpl.hpp:32:65: note:   template argument deduction/substitution failed:
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Variant/VariantAsImpl.hpp: In substitution of 'template<class T> typename ArduinoJson691_000::enable_if<ArduinoJson691_000::IsWriteableString< <template-parameter-1-1> >::value, T>::type ArduinoJson691_000::variantAs(const ArduinoJson691_000::VariantData*) [with T = ArduinoJson691_000::ArrayRef&]':
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Array/../Variant/VariantRef.hpp:237:30:   required from 'typename ArduinoJson691_000::enable_if<(((! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ArrayRef>::value) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ObjectRef>::value)) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::VariantRef>::value)), typename ArduinoJson691_000::VariantAs<T>::type>::type ArduinoJson691_000::VariantRef::as() const [with T = ArduinoJson691_000::ArrayRef&; typename ArduinoJson691_000::enable_if<(((! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ArrayRef>::value) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::ObjectRef>::value)) && (! ArduinoJson691_000::is_same<T, ArduinoJson691_000::VariantRef>::value)), typename ArduinoJson691_000::VariantAs<T>::type>::type = ArduinoJson691_000::ArrayRef&]'
D:/GitHub/xoseperez/code/espurna/ws.ino:455:58:   required from here
.piolibdeps\ArduinoJson_ID64\src/ArduinoJson/Variant/VariantAsImpl.hpp:32:65: error: no type named 'type' in 'struct ArduinoJson691_000::enable_if<false, ArduinoJson691_000::ArrayRef&>'
*** [.pioenvs\itead-sonoff-th\src\espurna.ino.cpp.o] Error 1
================================================== [ERROR] Took 28.13 seconds ==================================================

=========================================================== [SUMMARY] ===========================================================
Environment espurna-core-1MB                    [SKIP]
Environment espurna-core-2MB                    [SKIP]
Environment espurna-core-4MB                    [SKIP]
Environment esp8266-1m-ota                      [SKIP]
Environment esp8266-2m-ota                      [SKIP]
Environment esp8266-4m-ota                      [SKIP]
Environment travis01                            [SKIP]
Environment travis02                            [SKIP]
Environment travis03                            [SKIP]
Environment wemos-d1mini                        [SKIP]
Environment wemos-d1mini-relayshield            [SKIP]
Environment wemos-d1mini-relayshield-ssl        [SKIP]
Environment wemos-d1mini-relayshield-ota        [SKIP]
Environment nodemcu-lolin                       [SKIP]
Environment nodemcu-lolin-ssl                   [SKIP]
Environment nodemcu-lolin-ota                   [SKIP]
Environment tinkerman-espurna-h06               [SKIP]
Environment tinkerman-espurna-h06-ota           [SKIP]
Environment tinkerman-espurna-h08               [SKIP]
Environment tinkerman-espurna-h08-ota           [SKIP]
Environment tinkerman-espurna-switch            [SKIP]
Environment wemos-d1-tarpunashield              [SKIP]
Environment tinkerman-rfm69gw                   [SKIP]
Environment foxel-lightfox-dual                 [SKIP]
Environment foxel-lightfox-dual-ota             [SKIP]
Environment itead-sonoff-basic                  [SKIP]
Environment itead-sonoff-basic-ota              [SKIP]
Environment itead-sonoff-basic-dht              [SKIP]
Environment itead-sonoff-basic-r2-dht           [SKIP]
Environment itead-sonoff-basic-dht-ota          [SKIP]
Environment itead-sonoff-basic-dallas           [SKIP]
Environment itead-sonoff-basic-r2-dallas        [SKIP]
Environment itead-sonoff-rf                     [SKIP]
Environment itead-sonoff-rf-ota                 [SKIP]
Environment itead-sonoff-th                     [ERROR]
Environment itead-sonoff-th-ota                 [SKIP]
Environment itead-sonoff-pow                    [SKIP]
Environment itead-sonoff-pow-ota                [SKIP]
Environment itead-sonoff-pow-r2                 [SKIP]
Environment itead-sonoff-pow-r2-ota             [SKIP]
Environment itead-sonoff-dual                   [SKIP]
Environment itead-sonoff-dual-ota               [SKIP]
Environment itead-sonoff-dual-r2                [SKIP]
Environment itead-sonoff-dual-r2-ota            [SKIP]
Environment itead-sonoff-4ch                    [SKIP]
Environment itead-sonoff-4ch-ota                [SKIP]
Environment itead-sonoff-4ch-pro                [SKIP]
Environment itead-sonoff-4ch-pro-ota            [SKIP]
Environment itead-sonoff-touch                  [SKIP]
Environment itead-sonoff-touch-ota              [SKIP]
Environment itead-sonoff-b1                     [SKIP]
Environment itead-sonoff-b1-ota                 [SKIP]
Environment itead-sonoff-t1-1ch                 [SKIP]
Environment itead-sonoff-t1-1ch-ota             [SKIP]
Environment itead-sonoff-t1-2ch                 [SKIP]
Environment itead-sonoff-t1-2ch-ota             [SKIP]
Environment itead-sonoff-t1-3ch                 [SKIP]
Environment itead-sonoff-t1-3ch-ota             [SKIP]
Environment itead-sonoff-led                    [SKIP]
Environment itead-sonoff-led-ota                [SKIP]
Environment itead-sonoff-rfbridge               [SKIP]
Environment itead-sonoff-rfbridge-ota           [SKIP]
Environment itead-sonoff-rfbridge-direct        [SKIP]
Environment itead-sonoff-rfbridge-direct-ota    [SKIP]
Environment itead-slampher                      [SKIP]
Environment itead-slampher-ota                  [SKIP]
Environment itead-s20                           [SKIP]
Environment itead-s20-ota                       [SKIP]
Environment itead-1ch-inching                   [SKIP]
Environment itead-1ch-inching-ota               [SKIP]
Environment itead-motor                         [SKIP]
Environment itead-motor-ota                     [SKIP]
Environment itead-sonoff-sv                     [SKIP]
Environment itead-sonoff-sv-ota                 [SKIP]
Environment itead-sonoff-s31                    [SKIP]
Environment itead-sonoff-s31-ota                [SKIP]
Environment itead-sonoff-ifan02                 [SKIP]
Environment itead-sonoff-ifan02-ota             [SKIP]
Environment electrodragon-wifi-iot              [SKIP]
Environment electrodragon-wifi-iot-ota          [SKIP]
Environment workchoice-ecoplug                  [SKIP]
Environment workchoice-ecoplug-ota              [SKIP]
Environment jangoe-wifi-relay-nc                [SKIP]
Environment jangoe-wifi-relay-nc-ota            [SKIP]
Environment jangoe-wifi-relay-no                [SKIP]
Environment jangoe-wifi-relay-no-ota            [SKIP]
Environment openenergymonitor-mqtt-relay        [SKIP]
Environment openenergymonitor-mqtt-relay-ota    [SKIP]
Environment jorgegarcia-wifi-relays             [SKIP]
Environment jorgegarcia-wifi-relays-ota         [SKIP]
Environment aithinker-ai-light                  [SKIP]
Environment aithinker-ai-light-ota              [SKIP]
Environment lyasi-rgb-light                     [SKIP]
Environment lyasi-rgb-light-ota                 [SKIP]
Environment magichome-led-controller            [SKIP]
Environment magichome-led-controller-ota        [SKIP]
Environment magichome-led-controller-20         [SKIP]
Environment magichome-led-controller-20-ota     [SKIP]
Environment magichome-zj-wfmn-a-11              [SKIP]
Environment magichome-zj-wfmn-a-11-ota          [SKIP]
Environment magichome-zj-wfmn-b-11              [SKIP]
Environment magichome-zj-wfmn-b-11-ota          [SKIP]
Environment huacanxing-h801                     [SKIP]
Environment huacanxing-h801-ota                 [SKIP]
Environment huacanxing-h802                     [SKIP]
Environment huacanxing-h802-ota                 [SKIP]
Environment arilux-al-lc01                      [SKIP]
Environment arilux-al-lc01-ota                  [SKIP]
Environment arilux-al-lc02                      [SKIP]
Environment arilux-al-lc02-ota                  [SKIP]
Environment arilux-al-lc02-v14                  [SKIP]
Environment arilux-al-lc02-v14-ota              [SKIP]
Environment arilux-al-lc06                      [SKIP]
Environment arilux-al-lc06-ota                  [SKIP]
Environment arilux-al-lc11                      [SKIP]
Environment arilux-al-lc11-ota                  [SKIP]
Environment arilux-e27                          [SKIP]
Environment arilux-e27-ota                      [SKIP]
Environment itead-bnsz01                        [SKIP]
Environment itead-bnsz01-ota                    [SKIP]
Environment wion-50055                          [SKIP]
Environment wion-50055-ota                      [SKIP]
Environment exs-wifi-relay-v31                  [SKIP]
Environment exs-wifi-relay-v31-ota              [SKIP]
Environment exs-wifi-relay-v50                  [SKIP]
Environment exs-wifi-relay-v50-ota              [SKIP]
Environment wemos-v9261f                        [SKIP]
Environment wemos-v9261f-ota                    [SKIP]
Environment esp01-v9261f                        [SKIP]
Environment esp01-v9261f-ota                    [SKIP]
Environment wemos-ech1560                       [SKIP]
Environment wemos-ech1560-ota                   [SKIP]
Environment esp01-ech1560                       [SKIP]
Environment esp01-ech1560-ota                   [SKIP]
Environment mancavemade-esplive                 [SKIP]
Environment mancavemade-esplive-ota             [SKIP]
Environment intermittech-quinled                [SKIP]
Environment intermittech-quinled-ota            [SKIP]
Environment xenon-sm-pw702u                     [SKIP]
Environment xenon-sm-pw702u-ota                 [SKIP]
Environment authometion-lyt8266                 [SKIP]
Environment authometion-lyt8266-ota             [SKIP]
Environment kmc-70011                           [SKIP]
Environment kmc-70011-ota                       [SKIP]
Environment yjzk-switch-1ch                     [SKIP]
Environment yjzk-switch-1ch-ota                 [SKIP]
Environment yjzk-switch-2ch                     [SKIP]
Environment yjzk-switch-2ch-ota                 [SKIP]
Environment yjzk-switch-3ch                     [SKIP]
Environment yjzk-switch-3ch-ota                 [SKIP]
Environment generic-8ch                         [SKIP]
Environment gizwits-witty-cloud                 [SKIP]
Environment gizwits-witty-cloud-ota             [SKIP]
Environment euromate-wifi-stecker-shuko         [SKIP]
Environment euromate-wifi-stecker-shuko-ota     [SKIP]
Environment euromate-wifi-stecker-shuko-v2      [SKIP]
Environment euromate-wifi-stecker-shuko-v2-ota  [SKIP]
Environment tonbux-powerstrip02                 [SKIP]
Environment tonbux-powerstrip02-ota             [SKIP]
Environment lingan-swa1                         [SKIP]
Environment lingan-swa1-ota                     [SKIP]
Environment stm-relay                           [SKIP]
Environment stm-relay-ota                       [SKIP]
Environment heygo-hy02                          [SKIP]
Environment heygo-hy02-ota                      [SKIP]
Environment maxcio-wus002s                      [SKIP]
Environment maxcio-wus002s-ota                  [SKIP]
Environment maxcio-wde004                       [SKIP]
Environment maxcio-wde004-ota                   [SKIP]
Environment yidian-xsssa05                      [SKIP]
Environment yidian-xsssa05-ota                  [SKIP]
Environment oukitel-p1                          [SKIP]
Environment oukitel-p1-ota                      [SKIP]
Environment tonbux-xsssa01                      [SKIP]
Environment tonbux-xsssa01-ota                  [SKIP]
Environment tonbux-xsssa06                      [SKIP]
Environment tonbux-xsssa06-ota                  [SKIP]
Environment green-esp8266relay                  [SKIP]
Environment green-esp8266relay-ota              [SKIP]
Environment ike-espike                          [SKIP]
Environment ike-espike-ota                      [SKIP]
Environment arniex-swifitch                     [SKIP]
Environment arniex-swifitch-ota                 [SKIP]
Environment zhilde-eu44-w                       [SKIP]
Environment zhilde-eu44-w-ota                   [SKIP]
Environment luani-hvio                          [SKIP]
Environment luani-hvio-ota                      [SKIP]
Environment neo-coolcam-power-plug-wifi         [SKIP]
Environment neo-coolcam-power-plug-wifi-ota     [SKIP]
Environment estink-wifi-power-strip             [SKIP]
Environment estink-wifi-power-strip-ota         [SKIP]
Environment iwoole-led-table-lamp               [SKIP]
Environment iwoole-led-table-lamp-ota           [SKIP]
Environment lombex-lux-nova2-tunable-white      [SKIP]
Environment lombex-lux-nova2-tunable-white-ota  [SKIP]
Environment lombex-lux-nova2-white-color        [SKIP]
Environment lombex-lux-nova2-white-color-ota    [SKIP]
Environment generic-esp01s-relay-40             [SKIP]
Environment generic-esp01s-relay-40-inv         [SKIP]
Environment generic-esp01s-relay-40-ota         [SKIP]
Environment generic-esp01s-relay-40-inv-ota     [SKIP]
Environment generic-esp01s-rgbled-10            [SKIP]
Environment generic-esp01s-rgbled-10-ota        [SKIP]
Environment generic-esp01s-dht11-10             [SKIP]
Environment generic-esp01s-dht11-10-ota         [SKIP]
Environment generic-esp01s-ds18b20-10           [SKIP]
Environment generic-esp01s-ds18b20-10-ota       [SKIP]
Environment heltec-touch-relay                  [SKIP]
Environment heltec-touch-relay-ota              [SKIP]
Environment allnet-4duino-iot-wlan-relais       [SKIP]
Environment allnet-4duino-iot-wlan-relais-ota   [SKIP]
Environment tonbux-mosquito-killer              [SKIP]
Environment tonbux-mosquito-killer-ota          [SKIP]
Environment pilotak-esp-din-v1                  [SKIP]
Environment pilotak-esp-din-v1-ota              [SKIP]
Environment nodemcu-geiger                      [SKIP]
Environment nodemcu-geiger-ota                  [SKIP]
Environment blitzwolf-bwshpx                    [SKIP]
Environment blitzwolf-bwshpx-ota                [SKIP]
Environment blitzwolf-bwshpx-v23                [SKIP]
Environment blitzwolf-bwshpx-v23-ota            [SKIP]
Environment teckin-sp22-v14                     [SKIP]
Environment teckin-sp22-v14-ota                 [SKIP]
Environment gosund-ws1                          [SKIP]
Environment gosund-ws1-ota                      [SKIP]
Environment gosund-sp1-v23                      [SKIP]
Environment gosund-sp1-v23-ota                  [SKIP]
Environment digoo-nx-sp202                      [SKIP]
Environment digoo-nx-sp202-ota                  [SKIP]
Environment homecube-16a                        [SKIP]
Environment homecube-16a-ota                    [SKIP]
Environment bh-onofre                           [SKIP]
Environment bh-onofre-ota                       [SKIP]
Environment generic-ag-l4                       [SKIP]
Environment generic-ag-l4-ota                   [SKIP]
Environment lohas-e27-9w                        [SKIP]
Environment lohas-e27-9w-ota                    [SKIP]
Environment allterco-shelly1                    [SKIP]
Environment allterco-shelly1-ota                [SKIP]
Environment allterco-shelly2                    [SKIP]
Environment allterco-shelly2-ota                [SKIP]
Environment xiaomi-smart-desk-lamp              [SKIP]
Environment xiaomi-smart-desk-lamp-ota          [SKIP]
Environment phyx-esp12-rgb                      [SKIP]
Environment phyx-esp12-rgb-ota                  [SKIP]
Environment bestek-mrj1011                      [SKIP]
Environment bestek-mrj1011-ota                  [SKIP]
Environment gblife-rgbw-socket                  [SKIP]
Environment gblife-rgbw-socket-ota              [SKIP]
Environment smartlife-mini-smart-socket         [SKIP]
Environment smartlife-mini-smart-socket-ota     [SKIP]
Environment hama-wifi-steckdose-00176533        [SKIP]
Environment hama-wifi-steckdose-00176533-ota    [SKIP]
================================================== [ERROR] Took 28.74 seconds ==================================================
The terminal process terminated with exit code: 1
karmacoma92 commented 5 years ago

It looks like ArduinoJson library has moved to version 6 and it is not supported by espurna yet, I had the same issue today and fixed it by replacing

lib_deps = ArduinoJson

with

lib_deps = https://github.com/bblanchon/ArduinoJson#v5.13.5

in platformio.ini

do not know if it is the preferred or more canonical way to sort this out but it works

I hope it helps Oscar

icevoodoo commented 5 years ago

It looks like ArduinoJson library has moved to version 6 and it is not supported by espurna yet, I had the same issue today and fixed it by replacing

lib_deps = ArduinoJson

with

lib_deps = https://github.com/bblanchon/ArduinoJson#v5.13.5

in platformio.ini

do not know if it is the preferred or more canonical way to sort this out but it works

I hope it helps Oscar

Thanks you are right , it works. Hope this will be resolved soon to work with the new ArduinoJson 6.

PetrJakes commented 5 years ago

Worked to me as well, thank you