This Method is used to add a new PubSubConnection Object to the PublishSubscribe Object.

The Client shall be authorized to modify the configuration for the PubSub functionality when invoking this Method on the Server.

Signature

AddConnection (

[in]PubSubConnectionDataTypeConfiguration

[out]NodeId ConnectionId

);

Argument

Description

Configuration

Configuration parameters for the PubSubConnection. The parameters and the PubSubConnectionDataType are defined in 6.2.6.

ConnectionId

The NodeId of the new connection.

Method Result Codes

ResultCode

Description

Bad_InvalidArgument

The Server is not able to apply the name. The name may be too long or may contain invalid character.

Bad_BrowseNameDuplicated

An Object with the name already exists.

Bad_ResourceUnavailable

The Server has not enough resources to add the PubSubConnection Object.

Bad_UserAccessDenied

The Session user is not allowed to create a PubSubConnection Object.