This repository was archived by the owner on Jan 21, 2025. It is now read-only.
Replies: 2 comments
-
Hello, |
Beta Was this translation helpful? Give feedback.
0 replies
-
Closing - Duplicate of #185 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to JSON Object but I am getting this error.
AsyncJsonResponse * response = new AsyncJsonResponse();
'JsonObject' was not declared in this scope
JsonObject& root = response->getRoot();
'root' was not declared in this scope
JsonObject& root = response->getRoot();
A snippet of my code:-
server.on("/status", HTTP_GET, [] (AsyncWebServerRequest *request) {
AsyncJsonResponse * response = new AsyncJsonResponse();
response->addHeader("Server","ESP Async Web Server");
JsonObject& root = response->getRoot();
Beta Was this translation helpful? Give feedback.
All reactions