Added a webserver uri which prints out the tc data blocks json formatted

This commit is contained in:
Kai Lauterbach 2023-04-27 13:39:07 +02:00
parent 99042a9792
commit 334dd19614

View file

@ -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("/", []()