diff --git a/examples/dummy-web-server.pl b/examples/dummy-web-server.pl index 56015ef..e492933 100755 --- a/examples/dummy-web-server.pl +++ b/examples/dummy-web-server.pl @@ -430,7 +430,8 @@ sub process_user_comm_voltage my $voltage = (((time - $startTime) % 60) - 30) / 30.0 + 4.0; $voltage = sprintf("%.2f V", $voltage); - my $r = '{"voltage": "' . $voltage . '"}'; + my $table = ', "table": [["Time", "Min", "AVG", "Max"], ["0s-10s", "1 V", "3 V", "5 V"], ["10s-20s", "1 V", "2 V", "3 V"]]'; + my $r = '{"voltage": "' . $voltage . '"' . $table . '}'; return content_response($r, $http->{url}); } diff --git a/examples/web-server/Voltage.html b/examples/web-server/Voltage.html index 08e1017..96e4820 100644 --- a/examples/web-server/Voltage.html +++ b/examples/web-server/Voltage.html @@ -6,5 +6,8 @@