Filetransfer – Echelon OpenLNS User Manual

Page 351

Advertising
background image

OpenLNS Programmer's Reference

314

Syntax

retrievedObject = coll

Object._NewEnum

Element

Description

retrievedObject

An expression that evaluates to the

object retrieved.

collObject

An iterator object that can be used to

access members of the collection.

Data Type

Object.

Read/Write

Read only.

Added to API

OpenLNS.

FileTransfer

A FileTransfer object represents a LonMark file transfer session involving a group of

application devices. For example, you might set up a file transfer to upload log files from

some of the application devices on your network.
You can identify the target application devices, which store the files that are to be read from

or written to, for a file transfer using the

AddTarget

method.

You can set the file transfer parameters, such as the index number of the file to be written to

or read from, using the properties of the FileTransfer object. Once you have set these

properties, you can execute file transfers by invoking the

ReadFile

or

WriteFile

methods

.

The following table summarizes the

FileTransfer object.

Description

A LonMark file transfer session involving a group of application

devices.

Added to API

Prior to LNS Release 3.0.

Accessed Through

System

object.

Default Property

None.

Methods

AddTarget

ClearTargets

ReadFile

WriteFile

Properties

AuthenticationFlag

ClassId

FileCount

FileIndex

FileInfo

FileSize

FileType

HostTimeOut

Parent

PriorityFlag

ReadBufferLength

RetryCount

RxTimeOut

StartPosition

Advertising