From 334dd19614ed7e74d19df8760a2d191df60b7e34 Mon Sep 17 00:00:00 2001 From: Kai Lauterbach Date: Thu, 27 Apr 2023 13:39:07 +0200 Subject: [PATCH] Added a webserver uri which prints out the tc data blocks json formatted --- firmware/firmware.ino | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/firmware/firmware.ino b/firmware/firmware.ino index c2e8f43..d02fa71 100644 --- a/firmware/firmware.ino +++ b/firmware/firmware.ino @@ -405,6 +405,13 @@ void init_webserver() server.send(200, "text/plain", output); }); + server.on("/tc_data_blocks", []() + { + String output = tc_getJsonData(); + + server.send(200, "application/json", output); + }); + #endif // DISABLE_WEB_CONTROL server.on("/", []()