Skip to content
Skip to main content

About this free course

Download this course

Share this free course

Internet of everything
Internet of everything

Start this free course now. Just create an account and sign in. Enrol and complete the course for a free statement of participation or digital badge if available.

3.3.6 The Cisco Coffee JavaScript application

Active content not displayed. This content requires JavaScript to be enabled.
Figure 21
Interactive feature not available in single page view (see it in standard view).

The figure shows a simulated version of the Cisco Coffee JavaScript application currently running in your browser. If you click Show Real Data, you will see a status message that says, 'No sensors found'. That is because there are no actual sensors attached to the application. The application is generating fictitious sensor data. While the entirety of the code is out of the scope of this course, feel free to open the file and analyse it on your own to see how much you understand.

You can view the source by right-clicking anywhere in the figure and choosing an option similar to View Source or View Frame Source,depending on the browser. Scroll down to the section in the code that starts with Script. Lines that began with a double forward slash (//) denote comments. The comments provide a brief explanation of the code. If you would like to investigate this JavaScript application further, you can download the following files: