Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Industrial Internet Application Development

You're reading from   Industrial Internet Application Development Simplify IIoT development using public cloud and native cloud services

Arrow left icon
Product type Paperback
Published in Sep 2018
Publisher Packt
ISBN-13 9781788298599
Length 412 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (4):
Arrow left icon
Veera Kishore Reddipalli Veera Kishore Reddipalli
Author Profile Icon Veera Kishore Reddipalli
Veera Kishore Reddipalli
Alena Traukina Alena Traukina
Author Profile Icon Alena Traukina
Alena Traukina
Jayant Thomas Jayant Thomas
Author Profile Icon Jayant Thomas
Jayant Thomas
Prashant Tyagi Prashant Tyagi
Author Profile Icon Prashant Tyagi
Prashant Tyagi
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. IIoT Fundamentals and Components FREE CHAPTER 2. IIoT Application Architecture and Design 3. IIoT Edge Development 4. Data for IIoT 5. Advanced Analytics for the IIoT 6. Developing Your First Application for IIoT 7. Deployment, Scale, and Security 8. Reliability, Fault Tolerance, and Monitoring IIoT Applications 9. Implementing IIoT Applications with Predix 10. Best Practices for IIoT Applications 11. Future Direction of the IIoT 12. Other Books You May Enjoy

Adding Predix time series data to assets

In this section, we will describe how to build a Node.js application to simulate reading time series data from sensors connected to an asset (in this case, a Raspberry Pi hub). Furthermore, we will give instructions on how to create an instance of the Time Series service and enable the application to send data to it.

Building an app to read time series data

To build and deploy a Node.js app that simulates reading time series data from sensors, proceed as follows:

Make sure to specify the correct data source in the asset attributes (in this example, devices: /device/raspberry).
  1. Create the assets folder:
mkdir assets && cd assets

  1. Create the package.json file and paste the...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image