Skip to Content
Learning AWS IoT
book

Learning AWS IoT

by Agus Kurniawan
January 2018
Intermediate to advanced
278 pages
5h 13m
English
Packt Publishing
Content preview from Learning AWS IoT

Developing data visualization from AWS IoT

In this section, we will create a web application to consume sensor data. We will implement the program using HTML5 and JS. Technically, the HTML5 application will communicate with AWS IoT using MQTT over HTTP. This is done if we use AWS IoT SDK for JavaScipt/Node.js and AWS SDK.

  1. Firstly, we create a folder; for instance, aws-iot-visualz. Then, we initialize the Node.js project by creating the package.json file. Type the following commands:
$ mkdir aws-iot-visualz$ cd aws-iot-visualz/$ npm init
  1. Next, we install the required libraries for Node.js. We need the following libraries:
    • AWS IoT SDK for JavaScipt/Node.js
    • AWS SDK
    • Webpack

The Webpack library is used to bundle all JS libraries into a ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learn AWS Serverless Computing

Learn AWS Serverless Computing

Scott Patterson

Publisher Resources

ISBN: 9781788396110Supplemental Content