DeviceNotification
This method is called by the server for all connected variables of this ADS device. The event occurs for such variables that were previously connected by a AddDeviceNotification.
HRESULT DeviceNotification(
[in]TimeStamp* pTime,
[in] long hNotification,
[in] long cbLen,
[in, size_is(cbLen)]byte* pData
);
Parameter
pTime | [in] Pointer to a variable of type TimeStamp containing the exact time when the connected variable was collected. |
hNotification | [in] Handle that identifies a single connected variable. The handle was returned if the variable was connected by a call of the AddDeviceNotification method. |
cbLen | [in] Number of bytes received by this method. |
pData | [in, size_is(cbLen)]. Pointer to the first element of a byte array with length cbLen which contains the data of the connected variables |