Class represents Service Root container
- createCollector(name) ⇒ [class-collector]
-
Create new collector under current object
Table 1. Parameters name
String
New collector’s name
ReturnNewly 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
ReturnNewly 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.
ReturnNewly 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::Otherif omitted.gateway
Gateway used for communication sensor. Optional.
modbusUnitId
Integer
MODBUS Unit ID. Optional.
ReturnNewly created sensor of [class-sensor] class or NULL if failed to create