DeviceBuilder

DeviceBuilder Input File

Introduction

The DeviceBuilder Input format is to list all resources that needs to be included in the device that will make up the application. It lists the resources that will be sensor/actuators/etc. that make up the functionality of the device. The input file format supports additional information per resource so that the OCF data model can be changed. The changes that are allowed are limited: the result still needs to be OCF compliant. for example:

The property that is being used to find the resource is the rt value. The rt value is being used as lookup towards the IoTDataModels/Core github repos where the resource will be used from.

Table of Contents

Where to obtain information about OCF Devices and Resources

In OCF devices are defined by the Device Type. The Device Types can have mandatory resources.

Device Types are defined in the device specification.

But for ease of use (search) the list also can be found as interactive web page.

The list of standardized resources can be found in the Resource Type Specification.

For ease of use (search) the resources can also be found in the interactive web page.

Description of DeviceBuilder Input Format

The DeviceBuilder input file format is an JSON array that define each resource separately. The following properties are defined:

The advantage of the file format that it is:

Optimization

Examples with IoTivity

input-lightdevice.json

This input file describes the minimal light device, implementing only binary switch (on/off).

input-lightdevice-dimming.json

The light device implementing binary switch (on/off) and the dimming resource.

input-lightdevice-dimming-chroma.json

The light device implementing binary switch (on/off), dimming and colour chroma.

input-thermostat.json

A device as thermostat, having 2 temperature resourses.