Skip navigation links
Java SE Device Virtualization API Reference for Oracle Internet of Things Cloud Service Client Software Library. Release 21.1.1.0.0-3 E64443-26

Package oracle.iot.client.device

API for directly–connected devices and gateway devices as clients of the Oracle IoT Cloud Service.

See: Description

Package oracle.iot.client.device Description

API for directly–connected devices and gateway devices as clients of the Oracle IoT Cloud Service. A directly–connected device client is able to send messages to, and receive requests from, the server. A gateway device client is also able to register indirectly–connected devices with the server and to proxy messages to and from the server on behalf of the indirectly–connected devices.

A directly–connected device or a gateway device is first registered on the server with an activation identifier. This identifier is used by the client to activate the device (establish a secure connection between the device and the Oracle IoT Cloud Service). The device must be activated by the application before messages can be sent or received. The activate method will activate the registered device at which point the server will create an endpoint identifier for the device. The DirectlyConnectedDevice or GatewayDevice must be activated before it can be used to create a VirtualDevice or register indirectly–connected devices.

The activate method need only be called once. The method DirectlyConnectedDevice.isActivated() should be called before calling activate. If activate is called on a DirectlyConnectedDevice or GatewayDevice that is already activated, an IllegalStateException will be thrown.

Skip navigation links
Java SE Device Virtualization API Reference for Oracle Internet of Things Cloud Service Client Software Library. Release 21.1.1.0.0-3 E64443-26

Copyright © 2015, 2017, Oracle. All rights reserved.