O'Reilly logo

Arduino Networking by Marco Schwartz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Displaying the results

We are now going to use the data that was logged in the database and display it on a graph for more convenience. For this task, we are going to use a JavaScript library called flot, which is already included in the code for this chapter. This library provides nice functions to plot data on a web page, and also allows you to plot data in real time, so you will see the graph being automatically updated as more data comes in.

Everything will happen inside an HTML file called plot.html. We will only see the most important parts of the code here. Please refer to the GitHub repository of the chapter to get the complete files. Inside this file, you first have to include the files required for the flot library:

<script src="flot/jquery.js"></script> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required