beautypg.com

4 using the delete function on a lonworks device, 4 routers, Using the delete function on a l – Echelon i.LON SmartServer 2.0 User Manual

Page 232: Orks, Device -32, Routers -32, Routers, Device

background image

i.LON SmartServer 2.0 Programmer’s Reference

14-32

You can use the ClearStatus debugging command to clear the device statistics returned by the
QueryStatus command. The following example demonstrates how to use this command:



Net/LON/iLON

App


SendServicePin

You can use the SendServicePin command to send a service pin message from one of the 16 internal
devices stored on the SmartServer. You can use this command to commission or re-commission an
internal device on the SmartServer, such as the automated systems device (i.LON App) or an FPM
application device, using an LNS application such as the LonMaker tool.

This command is useful because if you press the service pin on the SmartServer hardware when
commissioning an internal device, it sends service pin messages from three of the internal devices
defined on the SmartServer: i.LON App, the IP-852 router, and the SmartServer’s network interface
(i.LON NI). The following example demonstrates how to use this command on an internal
SmartServer device:



Net/LON/HVAC

FPM



14.3.4

Using the Delete Function on a L

ON

W

ORKS

Device

You can use the Delete function to delete a L

ON

W

ORKS

device on the SmartServer, or in an LNS

network database via the LNS Proxy Web service. The Delete function takes an element with
a LON_Device_Cfg type as its input. The element only needs to include the device’s
property in the Delete Request as demonstrated in the following code sample:

Request



MyOldNetwork/MyOldChannel/MyOldDevice


Response



0


MyOldNetwork/MyOldChannel/MyOldDevice



14.4

Routers

You can use the List, Get, Set, and Delete functions on routers as described in the previous section,
L

ON

W

ORKS

Devices. Routers have the same properties as devices except for the following differences:

• A router has the xsi type LON_Device_Router_Cfg.