Added a webserver uri which prints out the tc data blocks json formatted
This commit is contained in:
parent
99042a9792
commit
334dd19614
1 changed files with 7 additions and 0 deletions
|
@ -405,6 +405,13 @@ void init_webserver()
|
||||||
server.send(200, "text/plain", output);
|
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
|
#endif // DISABLE_WEB_CONTROL
|
||||||
|
|
||||||
server.on("/", []()
|
server.on("/", []()
|
||||||
|
|
Loading…
Reference in a new issue