GoogleCloudPlatform/google-cloud-iot-arduino

ESP32 subfolders

mars000 opened this issue · 3 comments

Do you have an example of how I can publish and subscribe to a specific topic and subtopic.
its not clear from your existing examples how i can do this.

Hey mars, check out this link Wiki Link it might help with what you're looking for.

To subscribe to a specific topic, once you're connected to IoT Core you can call mqttClient.subscribe(topic). You can check out the Gateway example in the complex folder. The gateway example subscribes to topics of different devices.