new Client()
Client of the Oracle IoT Cloud Service. A client is a
directly-connected device, a gateway, or an enterprise
application.
Methods
(static) createStorageObject(name, typeopt) → {iotcs.StorageObject}
Create a new
iotcs.StorageObject
with the given object name and mime–type.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
name |
string | The unique name to be used to reference the content in storage. | ||
type |
string |
<optional> |
iotcs.device.StorageObject.MIME_TYPE | The mime-type of the content. |
Returns:
A storage object.
- Type
- iotcs.StorageObject
(static) createVirtualDevice(endpointId, deviceModel) → {iotcs.AbstractVirtualDevice}
Create an AbstractVirtualDevice instance with the given device model for the given device
identifier. This method creates a new AbstractVirtualDevice instance for the given
parameters. The client library does not cache previously created AbstractVirtualDevice
objects.
A device model can be obtained by it's afferent urn with the Client if it is registered on the cloud.
Parameters:
Name | Type | Description |
---|---|---|
endpointId |
string | The endpoint identifier of the device being modeled. |
deviceModel |
object | The device model object holding the full description of that device model that this device implements. |
- See:
-
iotcs.Client#getDeviceModel
Returns:
The newly created virtual device.