Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-On Industrial Internet of Things

You're reading from   Hands-On Industrial Internet of Things Create a powerful Industrial IoT infrastructure using Industry 4.0

Arrow left icon
Product type Paperback
Published in Nov 2018
Publisher Packt
ISBN-13 9781789537222
Length 556 pages
Edition 1st Edition
Tools
Arrow right icon
Authors (2):
Arrow left icon
Antonio Capasso Antonio Capasso
Author Profile Icon Antonio Capasso
Antonio Capasso
Giacomo Veneri Giacomo Veneri
Author Profile Icon Giacomo Veneri
Giacomo Veneri
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Preface 1. Introduction to Industrial IoT 2. Understanding the Industrial Process and Devices FREE CHAPTER 3. Industrial Data Flow and Devices 4. Implementing the Industrial IoT Data Flow 5. Applying Cybersecurity 6. Performing an Exercise Based on Industrial Protocols and Standards 7. Developing Industrial IoT and Architecture 8. Implementing a Custom Industrial IoT Platform 9. Understanding Industrial OEM Platforms 10. Implementing a Cloud Industrial IoT Solution with AWS 11. Implementing a Cloud Industrial IoT Solution with Google Cloud 12. Performing a Practical Industrial IoT Solution with Azure 13. Understanding Diagnostics, Maintenance, and Predictive Analytics 14. Implementing a Digital Twin – Advanced Analytics 15. Deploying Analytics on an IoT Platform 16. Assessment 17. Other Books You May Enjoy

Cloud Functions

Google Cloud Functions are serverless services that respond to events, such as data coming from our device. We are now going to set up a Cloud Function to extract the data sent by the device, process it immediately, and store it in the central data storage:

  1. From the Google Cloud Console's left-hand menu, click on Cloud Functions and then Enable API:
Enabling the Google Cloud Functions API
  1. Once it is enabled, we can click on the Create function section.
  1. We can then define the name of our function as iiot-book-function-1 and the memory allocated as 128 MB. The trigger is Cloud Pub/Sub and the topic is signals, which we created a few paragraphs prior on the Building the devices registry section:
The definition of iiot-book-function to process the incoming message
  1. Under the source code section of the inline editor on the index.js tab, we can copy and...
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