Skip to content

Latest commit

 

History

History
67 lines (61 loc) · 1.74 KB

File metadata and controls

67 lines (61 loc) · 1.74 KB

ServiceRoot

Class represents Service Root container

Instance methods

createCollector(name) ⇒ [class-collector]

Create new collector under current object

Table 1. Parameters

name

String

New collector’s name

Return

Newly created collector of [class-collector] class.

createContainer(name) ⇒ [class-container]

Create new container under current object

Table 2. Parameters

name

String

New container’s name

Return

Newly created container of [class-container] class.

createNode(name, primaryHostName, zoneUIN) ⇒ [class-node]

Create new node under current object.

Table 3. Parameters

name

String

Node name if second options is set or primary host name or IP address.

primaryHostName

String

Optional. Primary host name or IP address.

zoneUIN

Integer

Optional. New node’s zone UIN.

Return

Newly created node of [class-node] class or NULL if failed to create

createSensor(name, deviceClass, gateway, modbusUnitId) ⇒ [class-sensor]

Create new sensor under current object.

Table 4. Parameters

name

String

Sensor name

deviceClass

Integer

Sensor device class, one of the following values. Optional, SensorDeviceClass::Other if omitted.

gateway

[class-netobj]

Gateway used for communication sensor. Optional.

modbusUnitId

Integer

MODBUS Unit ID. Optional.

Return

Newly created sensor of [class-sensor] class or NULL if failed to create