which does not build. with Arduino IDE 1.8.19
Error message:
error: cannot bind non-const lvalue reference of type 'ArduinoJson::V6213PB2::JsonObject&' to an rvalue of type 'ArduinoJson::V6213PB2::JsonObject'
JsonObject& root = response->getRoot();
This makes sense because getRoot() returns a JsonVariant which then needs to be temporarily converted to a JsonObject, but you can't bind a reference to a temporary object
This page: https://me-no-dev.github.io/ESPAsyncWebServer/ Has this code:
which does not build. with Arduino IDE 1.8.19 Error message:
This makes sense because getRoot() returns a JsonVariant which then needs to be temporarily converted to a JsonObject, but you can't bind a reference to a temporary object