beautypg.com

Echelon i.LON SmartServer 2.0 User Manual

Page 208

background image

i.LON SmartServer 2.0 Programmer’s Reference

14-8

• The following example demonstrates how to synchronize the two devices on the network and their

child functional blocks and data points to the LNS network database:



Building/Channel

1/Device

1

action="SyncRecursive"

action="SyncRecursive"


In the element, you can insert a element with the following attributes
specifying synchronization options:

Option Description

action

Setting this attribute to “SyncAll” synchronizes all objects in the
SmartServer’s internal database with the LNS network database,
including hidden items (items with their flag set
to 1). Objects are synchronized regardless if they have been
modified in the SmartServer’s internal database. Selecting this
option also synchronizes the LON driver properties of the
objects if they have been changed in the SmartServer’s internal
database or the LNS network database.

Setting this attribute to "SyncRecursive" synchronizes the
specified objects and all of their child objects in the
SmartServer’s internal database with the LNS network database.

;clearHiddenFbs

Setting this attribute to "true" removes all functional blocks on
the SmartServer that do not have a corresponding functional
block shape in the LonMaker tool or other LNS application, and
deletes their XML configuration files from the SmartServer’s
internal database.

;sync

You can set this attribute to the following values:

• abort. Stops the current synchronization operation.
• restart. Stops and then re-starts the current synchronization

operation.

• state. Returns the number of remaining items to be synced.

The following example demonstrates how to synchronize a network with the synchronization options
set in the element:



Net
;action="SyncAll";clearHiddenFbs="true";sync="restart"