ServiceRoot
Class represents Service Root container
Instance methods
- createNode(name, primaryHostName, zoneUIN) ⇒ 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 Node class or NULL if failed to create
- createSensor(name, deviceClass, gateway, modbusUnitId) ⇒ 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 Sensor class or NULL if failed to create