espressif / esp-google-iot

Google Cloud IoT SDK as an ESP-IDF Component
Apache License 2.0
143 stars 44 forks source link

How to correctly subscribe topic on GCP? (CA-154) #30

Closed twlawrenceko closed 3 years ago

twlawrenceko commented 3 years ago

Hello,

Based on my understanding I know that the example code is publishing msg to GCP to topic /devices/<deviceID>/events How can we subscribe this topic on Google Cloud Platform?

Thank you.

twlawrenceko commented 3 years ago

Go to Subscriptions -> Pub/Sub -> Create subscription -> create topic -> Topic ID -> events