- Developing Applications with Oracle Internet of Things Cloud Service
- Create and Manage Device Models
- Create a New Device Model
Create a New Device Model
A device model is an interface that lets any device communicate with Oracle Internet of Things Cloud Service regardless of its manufacturer or operating system.
- Open the Oracle Internet of Things Cloud
Service Management Console.
You can access the Oracle Internet of Things Cloud Service Management Console from the following URL:
https://hostname/ui
Here,
hostname
is the host name of your Oracle Internet of Things Cloud Service instance. - Click the Menu () icon.
- Select Devices and then select Model.
- Select one of these options:
- If you have not previously created a device model, click Create Device Model.
- If you have previously created a device model, click the Add () icon.
- Complete these fields:
- Name: Enter a name for the device model.
- Description: Enter an optional description for the device model.
- URN: Enter a unique identifier for the device model. Use this format:
urn:com:<mycompany>:<mydevice>:<what the device model does>
.
- Select system attributes for the device model.
- (Optional) Add custom attributes for the device model:
- Expand the Custom Attributes option list.
- Click the Add () icon.
- Enter a name for the custom attribute in the Name field.
- Enter an optional description for the custom attribute in the Description field.
- Select a data type in the Type list.
- Select Writable if you want to make the custom attribute writable.
- Click OK.
- (Optional) Define the actions that can be invoked on the device:
- Expand the Actions option list.
- Click the Add () icon.
- Enter a name for the action in the Name field.
- Enter an optional description for the action in the Description field.
- Select the data type for the action in the Arguments list.
- Enter an optional alternate name for the action in the Alias field.
- Click OK.
- (Optional) Create alerts and custom message formats for the device model:
- Expand the Alerts and Custom Messages option list.
- Click the Add () icon.
- Enter a name for the alert or custom message in the Name field.
- Enter an optional description for the alert or custom message in the Description field.
- Enter a unique identifier for the alert or custom message in URN field. Use this format:
urn:<mycompany>:<department>:<mydevice>:<device model>:<message>
. - Select a data type in the Type list.
- Click OK.
- Select the alert message format and then click the Add () icon in the Fields column.
- Enter a name for the message type in the Name field.
- Select a data type in the Type list.
- Select Optional to indicate the field value can be missing in the device model message format.
- Click OK.
- Click Save.