Interfaces, Methods – Echelon OpenLNS User Manual

Page 435

Advertising
background image

OpenLNS Programmer's Reference

398

Interfaces

The Interfaces object is a collection of

Interface

objects. This collection contains the set of

custom interface objects that have been added to a device. You can use the

Add

method to

create custom interfaces on any device that supports dynamic network variables, dynamic

message tags, or dynamic LonMarkObjects.

The following table summarizes the

Interfaces

object.

Description

Represents a collection of

Interface

objects.

Added to API

Prior to LNS Release 3.0.

Accessed Through

AppDevice

object

NetworkServiceDevice

object

Default Property

Item property.

Methods

Add

Remove

Properties

ClassID

Count

Item

Parent

_NewEnum

Methods

The

Intefaces

object contains the following methods

.

Add

Remove

Add

Summary

Adds a new custom Interface to the device containing this

collection. You can create custom interfaces on any device

that supports dynamic network variables, dynamic message

tags, or dynamic LonMarkObjects.

Availability

Local, full, and lightweight clients.

Syntax

interfaceObject = interfaceColl.Add(interfaceName,

sourceInterfaceObj)

Element

Description

interfaceObject

The newly defined

Interface

object.

interfacesColl

The

Interfaces

collection object.

interfaceName

A String containing the name of the

interface.

The name of each custom Interface

object on a device must be unique. If

you specify a name that is already

being used on the device containing

this collection when you call this

method, the LCA, #3

Advertising