Questions tagged [google-cloud-iot]

Google Cloud IoT Core is a fully managed service to easily and securely connect, manage, and ingest data from globally dispersed devices.

Google Cloud IoT Core is a fully managed service to easily and securely connect, manage, and ingest data from globally dispersed devices.

  • Connect all devices and gateways to Google Cloud Platform over standard protocols, such as MQTT, HTTP, through the protocol endpoints and manage all your devices as a single global system.
  • Enable end-to-end security using asymmetric key authentication over TLS 1.2; CA signed certificates can be used to verify device ownership.
  • Use REST APIs to automatically manage the registration, deployment, and operation of devices at scale. Also, use the APIs to retrieve and update device properties and state even when the devices are not connected.
215 questions
11
votes
2 answers

Google Core IoT Device Offline Event or Connection Status

Does anybody know of an easy way to trigger an event when a device on Google Core IoT goes offline? Before I switched to Google's IoT implementation, this was very easily handled by triggering an event when MQTT disconnects, but it seems Google has…
5
votes
2 answers

Google IOT per device heartbeat alert using Stackdriver

I'd like to alert on the lack of a heartbeat (or 0 bytes received) from any one of large number of Google IOT core devices. I can't seem to do this in Stackdriver. It instead appears to let me alert on the entire device registry which does not give…
7hacker
  • 1,928
  • 3
  • 19
  • 32
3
votes
0 answers

paho mqtt python client frequently disconnecting with error code 7 "The connection was lost" after sending state and events to GCP IoT Core

EDIT: In an initial version of this question I was using the Python paho-mqtt client version paho-mqtt 1.5.1. The error message I received with that version was on_disconnect 1: Out of memory. error code 1. It was recommended to install the newer…
3
votes
1 answer

Retrieving real-time data from Google Cloud IoT device in GET / "pull" fashion?

I have a need to poll for a close-to-real time reading from a serial device (using ESP32) from a web application. I am currently doing this using Particle Photons and the Particle Cloud API, and am wondering if there is a way to achieve similar…
3
votes
0 answers

Google PubSub message ordering for IoT Core

We'd like to use the new Message Ordering feature for Google Cloud PubSub, but for messages coming from IoT Devices hooked up to IoT Core. The documentation states that an orderingKey should be provided when publishing the messages. Examples are…
Edo
  • 3,311
  • 1
  • 24
  • 25
3
votes
1 answer

How to send text data with file from IoT device to Cloud IoT Core?

I am sending images from a Raspberry Pi to Cloud IoT Core. This is working, but I now realised that I also need the filename of the file (or the data that I have added to the filename), when storing it in Google Cloud Storage, but as far as I can…
Ingrid
  • 516
  • 6
  • 18
3
votes
1 answer

Google Cloud IoT Core, SSH into devices

I've been using Google Cloud's IoT Core for some time and the need to SSH into devices as come up. Since we do BtoB it is mainly for support and debugging purposes. I was wandering if the service can provide me with the external IP of the device or…
3
votes
1 answer

Does Google IoT Core have an OTA solution for the ESP32?

We're scoping out a new industrial IoT product, and we are planning to use an ESP32 with Google's IoT Core. Looking through the existing Google IoT Core Docs, AWS IoT Core has an entire section of their docs dedicated to OTAs (AWS IoT Core OTA docs…
vpradeep
  • 746
  • 1
  • 6
  • 14
3
votes
3 answers

Google IOT Core and Raspberry Pi: Error: Connection Refused: Bad username or password

I followed the tutorial below to connect my raspberry pi 3 to the Google IOT Core. I setup the Google Core IOT part OK at the Google console and all steps were followed for the raspberry pi part, but, The connection is always refused as per the…
Paul Ruddlesdin
  • 103
  • 1
  • 1
  • 8
3
votes
1 answer

Connect local Mosquitto MQTT broker to Google Cloud IoT

In my current setup i read data using ebusd from my heating system which works perfectly fine. In the next step i'd like to send this data to a Google IoT Core Device. Unfortunately ebusd does not support setting the clientid externally. To…
thomasee
  • 90
  • 1
  • 7
3
votes
2 answers

How often does the Google IOT backend update Device State?

I am performing a GET every minute on the below URL to obtain Device State for all Devices in my IOT Registry GET https://cloudiot.googleapis.com/v1/{name=projects/*/locations/*/registries/*/devices/*} Once I obtain a Device, I am interested in…
7hacker
  • 1,928
  • 3
  • 19
  • 32
3
votes
1 answer

Google Cloud IoT Core State Data in Stackdriver

I'm wondering if there is any way to have my device's state data that is sent through Google IoT Core show up in Stackdriver, possibly as a custom metric. Essentially, I would like to use Stackdriver to monitor my devices but rather than deploy the…
3
votes
1 answer

Does google iot-core support MQTT WILL messages

I was wondering if google iot core support will messages concept. I tried to set will message for topic events on the device (devices\device-id\events) but had no luck with it... any ideas? thanks
gingi007
  • 107
  • 1
  • 10
2
votes
1 answer

Connect to Google IoT without the JWT token

I am working on an embedded device which is already able to communicate via MQTT with AWS and Azure for several years. Now our customers want to be able to use MQTT with Google IoT Cloud as well. I thought it would be nothing complicated, but I…
2
votes
2 answers

Trouble Connecting to Google Cloud IoT via MQTT with Node.js

I'm trying to create a MQTT client that'll connect to the Google Cloud IoT Core, but for some reason, it won't connect at all. Here's what I have so far mqtt = require("mqtt") fs = require("fs") var jwt = require('jsonwebtoken'); const projectId =…
1
2 3
14 15