Skip to Content
Hands-On Industrial Internet of Things
book

Hands-On Industrial Internet of Things

by Giacomo Veneri, Antonio Capasso
November 2018
Intermediate to advanced
556 pages
14h 42m
English
Packt Publishing
Content preview from Hands-On Industrial Internet of Things

Working with an MQTT client

After we have registered our IoT device, we can start to develop it. AWS provides a complete AWS IoT SDK for several languages at https://aws.amazon.com/it/iot/sdk/. For our test, we will use the JavaScript SDK. We assume that Node.js already installed.

From the GitHub repository at https://github.com/aws/aws-iot-device-sdk-js, clone the examples and install the SDK. We need to open a Command Prompt. From the root directory in which we saved our certificates, we can run the following command:

$ npm init

Accept all the proposed options, then enter the following:

$ npm install aws-iot-device-sdk

We have now installed the Node.js client, so we can start to write our simple client, but we need the endpoint URL. From ...

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

Internet of Things

Internet of Things

S. Velliangiri, Sathish A.P. Kumar, P. Karthikeyan
Industrial Internet Application Development

Industrial Internet Application Development

Alena Traukina, Jayant Thomas, Prashant Tyagi, Veera Kishore Reddipalli

Publisher Resources

ISBN: 9781789537222Supplemental Content