...
Use the Device states.list method to get the most recent device states (up to 10). Each Device
resource has a DeviceState
field that contains the state most recently received from the device. The DeviceRegistry
resource has a StateNotificationConfig field that can specify a state notification Cloud Pub/Sub topic when creating or updating a registry.
...