Google Cloud IoT Core is being retired on August 16, 2023. Contact your Google Cloud account team for more information.

Index (iotcore 1.0.0 API)

Stay organized with collections Save and categorize content based on your preferences.
B C D G I O P Q R S T 

B

build() - Method in class com.google.android.things.iotcore.ConnectionParams.Builder
Construct a new ConnectionParams instance with the parameters given to this Builder.
build() - Method in class com.google.android.things.iotcore.IotCoreClient.Builder
Construct a new IotCoreClient with the Builder's parameters.
Builder() - Constructor for class com.google.android.things.iotcore.ConnectionParams.Builder
 
Builder() - Constructor for class com.google.android.things.iotcore.IotCoreClient.Builder
 

C

com.google.android.things.iotcore - package com.google.android.things.iotcore
 
connect() - Method in class com.google.android.things.iotcore.IotCoreClient
Connect to Cloud IoT Core and perform any other required set up.
ConnectionCallback - Class in com.google.android.things.iotcore
Callback interface to receive information about the status of the Cloud IoT Core connection.
ConnectionCallback() - Constructor for class com.google.android.things.iotcore.ConnectionCallback
 
ConnectionCallback.DisconnectReason - Annotation Type in com.google.android.things.iotcore
Disconnect reason codes.
ConnectionParams - Class in com.google.android.things.iotcore
Stores information necessary to connect a single device to Google Cloud IoT Core: the device's client ID and some MQTT configuration settings.
ConnectionParams.Builder - Class in com.google.android.things.iotcore
Builder for ConnectionParams instances.

D

disconnect() - Method in class com.google.android.things.iotcore.IotCoreClient
Disconnect the client from Cloud IoT Core.

G

getAuthTokenLifetimeMillis() - Method in class com.google.android.things.iotcore.ConnectionParams
Returns the authentication token lifetime in milliseconds specified by these connection parameters.
getBridgeHostname() - Method in class com.google.android.things.iotcore.ConnectionParams
Returns the MQTT bridge hostname specified by these connection parameters.
getBridgePort() - Method in class com.google.android.things.iotcore.ConnectionParams
Returns the MQTT bridge port number specified by these connection parameters.
getBrokerUrl() - Method in class com.google.android.things.iotcore.ConnectionParams
Returns the MQTT broker URL formatted as "ssl://<hostname>:<port>".
getClientId() - Method in class com.google.android.things.iotcore.ConnectionParams
Returns the full path used to identify this device as defined in the device documentation .
getCloudRegion() - Method in class com.google.android.things.iotcore.ConnectionParams
Returns the Cloud Region specified by these connection parameters.
getConfigurationTopic() - Method in class com.google.android.things.iotcore.ConnectionParams
Returns the device configuration topic for this device formatted according to the configuration documentation.
getData() - Method in class com.google.android.things.iotcore.TelemetryEvent
Gets this event's data.
getDeviceId() - Method in class com.google.android.things.iotcore.ConnectionParams
Returns the device ID specified by these connection parameters.
getDeviceStateTopic() - Method in class com.google.android.things.iotcore.ConnectionParams
Returns the device state topic for this device formatted according to the device state documentation.
getProjectId() - Method in class com.google.android.things.iotcore.ConnectionParams
Returns the project ID specified by these connection parameters.
getQos() - Method in class com.google.android.things.iotcore.TelemetryEvent
Gets this event's quality of service settings.
getRegistryId() - Method in class com.google.android.things.iotcore.ConnectionParams
Returns the registry ID specified by these connection parameters.
getTelemetryTopic() - Method in class com.google.android.things.iotcore.ConnectionParams
Returns the telemetry topic for this device formatted according to the telemetry documentation.
getTopicSubpath() - Method in class com.google.android.things.iotcore.TelemetryEvent
Gets this event's topic subpath.

I

IotCoreClient - Class in com.google.android.things.iotcore
IotCoreClient manages interactions with Google Cloud IoT Core for a single device.
IotCoreClient.Builder - Class in com.google.android.things.iotcore
Constructs IotCoreClient instances.
isConnected() - Method in class com.google.android.things.iotcore.IotCoreClient
Returns true if connected to Cloud IoT Core, and returns false otherwise.

O

OnConfigurationListener - Interface in com.google.android.things.iotcore
Listener interface for receiving device configuration pushed by Google Cloud IoT Core.
onConfigurationReceived(byte[]) - Method in interface com.google.android.things.iotcore.OnConfigurationListener
Invoked when device configuration data is received from Cloud IoT Core.
onConnected() - Method in class com.google.android.things.iotcore.ConnectionCallback
Invoked when the Cloud IoT Core connection is established.
onDisconnected(int) - Method in class com.google.android.things.iotcore.ConnectionCallback
Invoked when the Cloud IoT Core connection is lost.

P

publishDeviceState(byte[]) - Method in class com.google.android.things.iotcore.IotCoreClient
Publishes state data to Cloud IoT Core.
publishTelemetry(TelemetryEvent) - Method in class com.google.android.things.iotcore.IotCoreClient
Add a telemetry event to this client's telemetry queue, if it is possible to do so without violating the telemetry queue's capacity restrictions, and publish the event to Cloud IoT Core as soon as possible.

Q

QOS_AT_LEAST_ONCE - Static variable in class com.google.android.things.iotcore.TelemetryEvent
At least once delivery.
QOS_AT_MOST_ONCE - Static variable in class com.google.android.things.iotcore.TelemetryEvent
At most once delivery.

R

REASON_CLIENT_CLOSED - Static variable in class com.google.android.things.iotcore.ConnectionCallback
The client closed the connection.
REASON_CONNECTION_LOST - Static variable in class com.google.android.things.iotcore.ConnectionCallback
The device lost connection to Cloud IoT Core.
REASON_CONNECTION_TIMEOUT - Static variable in class com.google.android.things.iotcore.ConnectionCallback
Timeout occurred while connecting to the MQTT bridge.
REASON_NOT_AUTHORIZED - Static variable in class com.google.android.things.iotcore.ConnectionCallback
The parameters used to connect to Cloud IoT Core were invalid.
REASON_UNKNOWN - Static variable in class com.google.android.things.iotcore.ConnectionCallback
Could not determine the source of the error.

S

setAuthTokenLifetime(long, TimeUnit) - Method in class com.google.android.things.iotcore.ConnectionParams.Builder
Set the amount of time authentication tokens used for connecting to Cloud IoT Core remain valid.
setBridgeHostname(String) - Method in class com.google.android.things.iotcore.ConnectionParams.Builder
Set the MQTT bridge hostname to use when connecting to Cloud IoT Core.
setBridgePort(int) - Method in class com.google.android.things.iotcore.ConnectionParams.Builder
Set the MQTT bridge port number to use when connecting to Cloud IoT Core.
setConnectionCallback(Executor, ConnectionCallback) - Method in class com.google.android.things.iotcore.IotCoreClient.Builder
Add a callback to receive updates when the connection to Cloud IoT Core changes.
setConnectionCallback(ConnectionCallback) - Method in class com.google.android.things.iotcore.IotCoreClient.Builder
Add a callback to receive updates when the connection to Cloud IoT Core changes.
setConnectionParams(ConnectionParams) - Method in class com.google.android.things.iotcore.IotCoreClient.Builder
Set ConnectionParams the client should use to connect to Cloud IoT Core.
setDeviceId(String) - Method in class com.google.android.things.iotcore.ConnectionParams.Builder
Set the device ID used to register this device in Cloud IoT Core.
setKeyPair(KeyPair) - Method in class com.google.android.things.iotcore.IotCoreClient.Builder
Set the key pair used to register this device with Cloud IoT Core.
setOnConfigurationListener(Executor, OnConfigurationListener) - Method in class com.google.android.things.iotcore.IotCoreClient.Builder
Add a listener to receive configuration changes sent to the device from Cloud IoT Core.
setOnConfigurationListener(OnConfigurationListener) - Method in class com.google.android.things.iotcore.IotCoreClient.Builder
Add a listener to receive configuration changes sent to the device from Cloud IoT Core.
setProjectId(String) - Method in class com.google.android.things.iotcore.ConnectionParams.Builder
Set the Google Cloud project ID.
setRegistry(String, String) - Method in class com.google.android.things.iotcore.ConnectionParams.Builder
Set the Cloud IoT Core registry.
setTelemetryQueue(Queue<TelemetryEvent>) - Method in class com.google.android.things.iotcore.IotCoreClient.Builder
Set the queue the client should use for storing telemetry events when the client is disconnected from Cloud IoT Core.

T

TelemetryEvent - Class in com.google.android.things.iotcore
Represents a telemetry event to publish to Cloud IoT Core.
TelemetryEvent(byte[], String, int) - Constructor for class com.google.android.things.iotcore.TelemetryEvent
Constructs a new TelemetryEvent with the data to publish and an optional topic subpath destination.
TelemetryEvent.Qos - Annotation Type in com.google.android.things.iotcore
Quality of service options.
B C D G I O P Q R S T