|
|
@ -29,13 +29,7 @@ void handleAccelerometer() |
|
|
|
|
|
|
|
bias += getHtml(HTML_BEGIN, *html_code, arr_size, 0); |
|
|
|
bias += getHtml(STYLE, *html_code, arr_size, bias); |
|
|
|
bias += getHtml(SCRIPT_BEGIN, *html_code, arr_size, bias); |
|
|
|
// for (int i = 0; i != graphAcc.graphSize - 1; i++)
|
|
|
|
// {
|
|
|
|
// bias += snprintf((html_code + bias), arr_size - bias, "context.lineTo(%i*2, %i);\n", i, graphAcc.graphArray[i]);
|
|
|
|
// }
|
|
|
|
bias += getHtml(SCRIPT_END, *html_code, arr_size, bias); |
|
|
|
//bias += snprintf((html_code+bias), arr_size - bias, "<br />Current accelerometer: %i", acc);
|
|
|
|
bias += getHtml(SCRIPT, *html_code, arr_size, bias); |
|
|
|
bias += getHtml(HTML_END, *html_code, arr_size, bias); |
|
|
|
|
|
|
|
server.send(200, "text/html", html_code); |
|
|
|