Google IoT Core MQTT Bridge to Firebase

1,361 views
Skip to first unread message

John Brough

unread,
Jun 25, 2020, 8:45:10 AM6/25/20
to Google Cloud Pub/Sub Discussions
Hello,

This question really concerns which is the correct architecture that I should be using on GCP.

I have an IoT device that publishes and subscribes to GCP IoT Core using the MQTT Bridge, so I have data arriving from the device and I can issue commands to it via MQTT Pub/Sub

I also have a device in Google Assistant that sends and retreives data from Google Firebase.

I would like to connect the real world device to the virtual world so I can close the loop with Assistant to the physical device.

Is this architecture correct?

Device <--> Gateway <--> IoT Core MQTT Bridge <--> Firebase <--> Google Assistant

If so what is the best way of getting the MQTT Pub/Sub into Firebase?

Thanks

Ismail (Cloud Platform Support)

unread,
Jun 30, 2020, 2:38:24 PM6/30/20
to Google Cloud Pub/Sub Discussions

Hi John, 


I couldn’t fully understand your overall objective from the architecture you provided. 


Therefore, I would like you to 


1. Clarify the architecture provided and explain what you mean by closing the loop. 

2. Confirm whether you would like to control the device through Google Assistant. 


I would also recommend for you to check this End-to-end Cloud IoT Core example.



John Brough

unread,
Jul 2, 2020, 8:58:33 AM7/2/20
to Google Cloud Pub/Sub Discussions
Hi Ismail,

I currently have an IoT device that connects to IoT Core and interacts with my GCP project via MQTT with both publish and subscribe.

I also have a device in Firebase that interacts with Google Assistant and i can visualize and control the state via that platform.

When i say close the loop, i mean connect the MQTT bridge to Firebase so i can control my IoT device from Google Assistant.

If that is the correct architecture?

Regards,

Ismail (Cloud Platform Support)

unread,
Jul 7, 2020, 1:24:45 PM7/7/20
to Google Cloud Pub/Sub Discussions
Hi John, 

As this is a design question, I cannot provide you with a precise answer since I don't have all the details for your user case. However, Google provides this Cloud Firestore with Cloud IoT Core for device configuration tutorial that I believe it would answer all your questions and concerns. 

For further assistance, I highly recommend posting your detailed question on Stack Overflow similar to this thread, and others.  

Note that Google Groups is reserved for general product discussions. If you require further technical support it is recommended to post your detailed questions on Stack Exchange. 


Reply all
Reply to author
Forward
0 new messages