Package | Description |
---|---|
googlecloud.iotcore |
A higher level API using Device concepts from Google Cloud IoT Core.
|
googlecloud.iotcore.pubsub |
A MQTT client for Google Cloud Platform IoT Core.
|
Constructor and Description |
---|
Device(ConnectOptions options)
Create a Device with connection information related to the Google Cloud IoT Core services.
|
Modifier and Type | Method and Description |
---|---|
ConnectOptions |
ConnectOptions.setCloudRegion(java.lang.String cloudRegion)
Sets the cloudRegion.
|
ConnectOptions |
ConnectOptions.setDeviceId(java.lang.String deviceId)
Sets the deviceId.
|
ConnectOptions |
ConnectOptions.setJWTSessionPeriod(long period) |
ConnectOptions |
ConnectOptions.setJWTSigner(com.microej.signature.Signer signer)
Set the signer that will be used to generate the JWT.
|
ConnectOptions |
ConnectOptions.setProjectId(java.lang.String projectId)
Sets the projectId.
|
ConnectOptions |
ConnectOptions.setRegistryId(java.lang.String registryId)
Sets the registryId.
|
ConnectOptions |
ConnectOptions.setServerHost(java.lang.String serverHost)
Sets the serverHost.
|
ConnectOptions |
ConnectOptions.setServerPort(int serverPort)
Sets the serverPort.
|
ConnectOptions |
ConnectOptions.setSslContext(javax.net.ssl.SSLContext sslContext)
Sets the sslContext.
|
Modifier and Type | Method and Description |
---|---|
void |
Client.connect(ConnectOptions connectOptions)
Use the connection options to open a connection the Google Cloud IoT Core services.
|