google-cloud-iot

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

时间秒杀一切 提交于 2019-12-11 14:45:44
问题 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 whole code: AndroidManifest.xml: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="cacaosd.com.sample1"> <!-- PAHO Permissions --> <uses-permission android:name="android.permission

Google IOT per device heartbeat alert using Stackdriver

依然范特西╮ 提交于 2019-12-10 21:25:01
问题 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 me what I'm looking for (How would I know that a particular device is disconnected?) So how does one go about doing this? 回答1: I have no idea why this question was downvoted as 'too broad'. The truth is Google IOT doesn't have per device alerting,

IoT using Google Cloud Service IoT solutions (Weave): How to connect Raspberry Pi and lighting the LED?

邮差的信 提交于 2019-12-09 04:21:29
I am trying to connect my raspberri pi with Google IoT Cloud solutions using Weave. I have done it already using AWS and IBM Bluemix, but could not find a way to do the same using Google Cloud. As per their documentation, it seems that some of the fies have been deprecated or not been updated. Moreover, they have been written in C language and I am not much of a C guy. I used Python for both the IBM Bluemix and AWS to connect my Pi to IoT and then establish the subscriber and exchange messages using MQTT gateway. Can anyone suggest anything regarding this? Google Weave getting started To be

IoT using Google Cloud Service IoT solutions (Weave): How to connect Raspberry Pi and lighting the LED?

感情迁移 提交于 2019-12-08 04:43:20
问题 I am trying to connect my raspberri pi with Google IoT Cloud solutions using Weave. I have done it already using AWS and IBM Bluemix, but could not find a way to do the same using Google Cloud. As per their documentation, it seems that some of the fies have been deprecated or not been updated. Moreover, they have been written in C language and I am not much of a C guy. I used Python for both the IBM Bluemix and AWS to connect my Pi to IoT and then establish the subscriber and exchange

Google iot core connection status

狂风中的少年 提交于 2019-12-06 11:26:06
I am using Google IOT core with mongoose os. I wanted to update device connection status to firestore. But i am unable to find event which reports mqtt connection status to pub/sub like when device disconnects or reconnect i.e if device is offline or not. I am stuck on this problem for days.Any help will be appreciated Update As @devunwired mentioned in this response it is now possible to monitor Stackdriver logs for disconnect events. You must have at a minimum enabled INFO level logging on your project in IoT Core > Registries > [your registry] > Edit Registry > Select "Info" log level >

Google Core IoT Device Offline Event or Connection Status

╄→尐↘猪︶ㄣ 提交于 2019-12-01 21:18:25
问题 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 no easy way of doing this. Does anybody know if there is something planned for this? Who's back do I need to scratch to get them to see that something like this is a basic requirement for IoT device management! Other platforms like AWS and

Google Core IoT Device Offline Event or Connection Status

坚强是说给别人听的谎言 提交于 2019-12-01 20:44:03
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 no easy way of doing this. Does anybody know if there is something planned for this? Who's back do I need to scratch to get them to see that something like this is a basic requirement for IoT device management! Other platforms like AWS and Microsoft already have this implemented (or some way to handle it easily): https://docs.aws.amazon.com/iot