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.
|
Modifier and Type | Method and Description |
---|---|
void |
Device.connect()
Connect the Device to the Google Cloud IoT Core services.
|
void |
Device.disconnect()
Disconnect the Device from the Google Cloud IoT Core services.
|
void |
Device.setConfigListener(googlecloud.iotcore.ConfigListener listener)
Add a configuration listener notified when the config of the device changes and at first connection.
|
void |
Device.setEvent(byte[] data)
Set events.
|
void |
Device.setState(byte[] data)
Set the state of Device.
|
void |
Device.setSubEvent(java.lang.String subEvent,
byte[] data)
Set sub-events.
|
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.
|
void |
Client.disconnect()
Disconnect this client from the underlying communication layer.
|
void |
Client.publish(java.lang.String topic,
byte[] data) |
void |
Client.subscribe(java.lang.String topic) |
void |
Client.unsubscribe(java.lang.String topic) |