Retrieve and list device states.
Explore further
For detailed documentation that includes this code sample, see the following:
Code sample
Go
For more information, see the Cloud IoT Core Go API reference documentation.
Java
For more information, see the Cloud IoT Core Java API reference documentation.
Node.js
For more information, see the Cloud IoT Core Node.js API reference documentation.
PHP
For more information, see the Cloud IoT Core PHP API reference documentation.
Python
For more information, see the Cloud IoT Core Python API reference documentation.
Ruby
For more information, see the Cloud IoT Core Ruby API reference documentation.
What's next
To search and filter code samples for other Google Cloud products, see the Google Cloud sample browser.