GCP provides a very powerful platform for analytics, from simple, functional analytics to machine learning. In the following section, we will discover the most common solutions for IoT.
GCP for analytics
GCP functions for analytics
From the example provided in the last section, it is very easy to implement an analytical function to check the signals and to apply a digital twin. The following function defines a simple excursion monitoring function and evaluates the value of data streaming:
const digitalTwin = {};
digitalTwin['signal1'] = {upperLimit: 40, lowerLimit: 10};
exports.helloPubSub = (event, callback) => {
const pubsubMessage = event.data;
const str = Buffer.from(pubsubMessage.data, 'base64').toString...