See More
Popular Forum

MBA (4887) B.Tech (1769) Engineering (1486) Class 12 (1030) Study Abroad (1004) Computer Science and Engineering (988) Business Management Studies (865) BBA (846) Diploma (746) CAT (651) B.Com (648) B.Sc (643) JEE Mains (618) Mechanical Engineering (574) Exam (525) India (462) Career (452) All Time Q&A (439) Mass Communication (427) BCA (417) Science (384) Computers & IT (Non-Engg) (383) Medicine & Health Sciences (381) Hotel Management (373) Civil Engineering (353) MCA (349) Tuteehub Top Questions (348) Distance (340) Colleges in India (334)
See More

Google IOT - device subscribe to something else than /devices/XXXX/config

Internet of Things IoT Frameworks
Max. 2000 characters

Pooja Bhardwaj


( 1 month ago )

_x000D_ I am not an expert on Google IoT, but few days ago I got the same doubts about it. Apparently, although we can publish to /events, /config and /state topics, using MQTT protocol, only topic /config and, maybe, /state can work through subscriptions with the same protocol. The conclusion I got, after reading many times the documentation, that is not so clear, and asking some questions here at stackoverflow is: you can not use MQTT to subscribe to any topic in order to receive those data sent to /events topic. To accomplish this, you have to create a Pub/Sub topic associating it to your device: On Google Cloud IoT Core Console, click on your registry ID; Create a standard telemetry topic; After topic created, click on the topic to see its details; Its details will open on Google Cloud Pub/Sub panel; In this panel, you can create a subscription to the created topic, by clicking on the "create subscription button". Now that you have a "google cloud pub/sub topic" linked to "google cloud iot core /events telemetry MQTT topic" and a respective subscription, you can use the google pub/sub library to receive notifications through created subscription when data are sent to /events topic. Maybe the following link can also help: I hope this can help you. If I made any mistake in my answer, may someone edit it with some improvement or correction.

what's your interest