setPointSecurity

setPointSecurity — sets the security attributes of a DataHub point.

Synopsis

For C++:
ST_STATUS setPointSecurity(point,  
 security); 
CDataHubPoint& point;
int security;
 
ST_STATUS setPointSecurity(pointname,  
 security); 
LPCTSTR pointname;
int security;
 
For Java and C#:
Exception setPointSecurity(point,  
 security); 
CDataHubPoint& point;
int security;
 
Exception setPointSecurity(pointname,  
 security); 
String pointname;
int security;
 

Parameters

point

A DataHubPoint object. The name and security members must be valid.

pointname

The name of the point.

security

The new security level to which the DataHub point will be set.

Returns

For C++:
  • ST_OK if the command was successfully sent to the DataHub instance. Since the command is sent asynchronously, the actual success or failure of the command must be determined through the onSuccess or onError message handlers.

  • ST_NO_TASK if a connection to the DataHub instance does not exist.

  • ST_ERROR if the connection socket is unable to send the message.

Description

This method sets the security attributes of a DataHub point. An update to a DataHub point will be rejected unless the security level associated with the new point value is greater than or equal to the corresponding DataHub point. The default DataHub point security level is 0.

See Also

setPointLock