ConnectionParams (iotcore 1.0.0 API)

com.google.android.things.iotcore

Class ConnectionParams

    • Method Detail

      • getProjectId

        public String getProjectId()
        Returns the project ID specified by these connection parameters.
        Returns:
        the project ID
      • getRegistryId

        public String getRegistryId()
        Returns the registry ID specified by these connection parameters.
        Returns:
        the registry ID
      • getDeviceId

        public String getDeviceId()
        Returns the device ID specified by these connection parameters.
        Returns:
        the device ID
      • getCloudRegion

        public String getCloudRegion()
        Returns the Cloud Region specified by these connection parameters.
        Returns:
        the cloud region
      • getBridgeHostname

        public String getBridgeHostname()
        Returns the MQTT bridge hostname specified by these connection parameters.
        Returns:
        the bridge hostname
      • getBridgePort

        public int getBridgePort()
        Returns the MQTT bridge port number specified by these connection parameters.
        Returns:
        the bridge port number
      • getBrokerUrl

        public String getBrokerUrl()
        Returns the MQTT broker URL formatted as "ssl://<hostname>:<port>".
        Returns:
        the broker URL
      • getAuthTokenLifetimeMillis

        public long getAuthTokenLifetimeMillis()
        Returns the authentication token lifetime in milliseconds specified by these connection parameters.
        Returns:
        the authentication token lifetime in milliseconds
      • getClientId

        public String getClientId()
        Returns the full path used to identify this device as defined in the device documentation .
        Returns:
        the Cloud IoT Core client ID specified by these connection parameters
      • getTelemetryTopic

        public String getTelemetryTopic()
        Returns the telemetry topic for this device formatted according to the telemetry documentation.

        Strings returned from this method do not end with a trailing slash.

        Returns:
        the telemetry topic specified by these connection parameters
      • getDeviceStateTopic

        public String getDeviceStateTopic()
        Returns the device state topic for this device formatted according to the device state documentation.

        Strings returned from this method do not end with a trailing slash.

        Returns:
        the device state topic specified by these connection parameters
      • getConfigurationTopic

        public String getConfigurationTopic()
        Returns the device configuration topic for this device formatted according to the configuration documentation.

        Strings returned from this method do not end with a trailing slash.

        Returns:
        the device configuration topic specified by these connection parameters
Was this page helpful? Let us know how we did:

Send feedback about...

Google Cloud Internet of Things Core