Skip to content

Commit

Permalink
output api_data to console
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDvP committed Dec 31, 2022
1 parent 34f6b41 commit 2f1ea4d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/console.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,11 @@ void EMSESPShell::add_console_commands() {
}

if (return_code == CommandRet::OK && json.size()) {
if (json.containsKey("api_data")) {
JsonVariant data = json["api_data"];
shell.println(data.as<String>());
return;
}
serializeJsonPretty(doc, shell);
shell.println();
return;
Expand Down

0 comments on commit 2f1ea4d

Please sign in to comment.