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
0
votes
1 answer

Cloud IoT Config encryption

I want to send sensitive data through Cloud IoT Config, but not sure of if there is any encryption. Is there any form of encryption that happens for config messages between server and device? Any references?
youSeeMe
  • 21
  • 3
0
votes
1 answer

Testing Google IoT Core Client for Android

An Android Things project with the following unit test fails: import com.google.android.things.iotcore.IotCoreClient; import org.junit.Test; public class ExampleUnitTest { @Test public void clientTest() { new…
0
votes
1 answer

Connect gateway to Google Cloud IoT

I want to connect an external gateway which recieves data from mqtt devices to my google IoT Core. In this picture you can find (more or less) a view of the project Details of the project Summarizing, I would like to connect the IoT Gateway of the…
IoT user
  • 1,222
  • 4
  • 22
  • 49
0
votes
1 answer

Google Cloud Pub/Sub SDK - subscribe() takes at least 3 arguments (2 given)

The code below, to subscribe in a topic, was working some months ago. from google.cloud import pubsub def callback(message): print(message.data) message.ack() project_id = "my_project" topic_name = "xxx" subscription_name =…
0
votes
1 answer

Google Cloud IoT Few config updates mesages are missing when sending config updates frequently from cloud functions to device

I am using config update and cloud functions for communication between mobile application and esp32 device by following the example here, but when I am sending config update messages frequently some of them are not sending; say out of 5 only 3…
0
votes
1 answer

Problems connecting to Google IoT core via MQTT in C

I've set up the sample program from here: https://github.com/GoogleCloudPlatform/cpp-docs-samples/tree/master/iot/mqtt-ciotc When I try to run the example, the only error message that I get is: 'Failed to connect, return code 1' I then moved on and…
0
votes
1 answer

Google Cloud IoT - Multiple config messages

In my code I'm subscribing to 3 different topics: /devices/{}/config /devices/{}/events /devices/{}/state If I'm not subscribed in /devices/{}/config I don't receive any config message, and that's ok. But if I'm subscribed in /devices/{}/config I…
0
votes
1 answer

Google Cloud IOT, block communication via API

I'd like to block communication with a device in a registry in Google Cloud IOT. The gcloud command that is used to block communication: https://cloud.google.com/iot/docs/gcloud-examples#block_or_allow_communication_from_a_device The Patch API…
7hacker
  • 1,928
  • 3
  • 19
  • 32
0
votes
2 answers

How can an IoT device upload a file to the cloud?

Is it possible for an IoT device on Google Cloud Platform to upload a file to the cloud somehow? In this case it's not exactly a telemetry data publishing. A direct access to the bucket could be useful. Either that or access to my AppEngine-based…
Kamil Janowski
  • 1,872
  • 2
  • 21
  • 43
0
votes
1 answer

IoT push notifications only when device is online

I have an IoT device that should be able to receive push notifications, but I don't want the notifications to be persisted in any way. The device is either currently online and receives the notification, Or it's not and then the notification should…
0
votes
2 answers

VPC Private Google API access for mqtt.googleapis.com (Cloud IOT) using a proxy

I have enabled Private Google API access for a VPC and I use this HTTP proxy solution described to connect my offsite datacenter to the Google Cloud backend. Using the solution, I have verified that the Google object storage api's work, by using…
0
votes
2 answers

How to send data from Raspberry pi to Google Cloud IoT Core, using Android Studio?

I'm doing Android Things project. I want to publish a String message to Google Cloud IoT Core, but there are errors shown. I'm using Raspberry Pi 3 with Android Things OS and and programming it using Android Studio. Errors screenshot: This is the…
Alkhalil
  • 61
  • 8
0
votes
1 answer

Google IoT-core v1 API discovery not found

I have some issues trying to access google iot-core API from my remote server (hosted on Digital Ocean). The same piece of code could work on my local machine, and I ensured that even the service key was the same, yet there was no explicit message…
jlyh
  • 681
  • 9
  • 32
0
votes
3 answers

Google IoT - Right mode to receive notifications (subscribe working)

I am following this tutorial and I already have my code publishing messages to /devices/sm1/events topic, in which sm1 is my device id. I would like to know how to subscribe to this topic since the tutorial says to use /devices/sm1/config but I am…
0
votes
1 answer

About Google Cloud IOT core connect to device

I m beginner use google cloud platform. I current do my Final Year Project . I want ask about google cloud iot core. How device like temperature sensor connect to device registry? Regards, Thank you