uaPLUS Reference
DlgPlgWriteToDevice Delegate
See Also  Send Feedback
Advosol.uaPLUS Namespace : DlgPlgWriteToDevice Delegate

instanceHandle
Handle the identifies the calling client application. The method GetServerInstancesInfo can be used to get name information for this handle.
writeVals
objects with handle, value, quality, timestamp to be written
errors
array with HRESULT success/error codes on return.

Glossary Item Box

This method is called when a client 'write' requst is handled. The items specified in the appHandles array need to be written to the device.
The cache update handling depends on the configuration parameter writeCacheUpdateMode For 0 (Generic): The cache is updated in the generic server after returning from the customization WiteItems method. Items with write error are not updated in the cache.
For 1 (Custom): The customization module needs to update the cache by executing the SetItemValue callback method for each written item. The generic server does not update the cache.

Syntax

Visual Basic (Declaration) 
Public Delegate Function DlgPlgWriteToDevice( _
   ByVal instanceHandle As Integer, _
   ByVal writeVals() As DeviceItemValue, _
   ByRef errors As Integer() _
) As Integer
C# 
public delegate int DlgPlgWriteToDevice( 
   int instanceHandle,
   DeviceItemValue[] writeVals,
   out int[] errors
)

Parameters

instanceHandle
Handle the identifies the calling client application. The method GetServerInstancesInfo can be used to get name information for this handle.
writeVals
objects with handle, value, quality, timestamp to be written
errors
array with HRESULT success/error codes on return.

Return Value

HRESULT success/error code

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2010-2018 Copyright Advosol Inc. All Rights Reserved.