CreateAsset creates a new Object that implements the IWoTAssetType Interface that can be used to upload the WoT TD file to the server. Once the upload is complete, the industrial asset becomes reachable via the OPC UA server. The WoT TD file uploaded fully defines the endpoint, protocol, and all asset tags to be mapped to OPC UA.

CreateAsset, when successful, returns the NodeId of the newly created Object and adds an Organizes Reference from the WoTAssetConnectionManagement Object.

Signature

CreateAsset(

[in] 0:String AssetName,

[out] 0:NodeId AssetId);

Table 7 – CreateAsset Method Arguments

Argument

Description

AssetName

A unique name for the asset.

AssetId

The NodeId of the WoTAsset Object, if call was successful.

Method Result Codes

Result Code Symbolic Id

Description

Bad_BrowseNameDuplicated

The AssetName is already used.

Bad_UserAccessDenied

The session does not have the permissions required.