6.3.2 CreateAsset Method

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 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
AssetNameA unique name for the asset.
AssetIdThe NodeId of the WoTAsset Object, if call was successful.

Method Result Codes

Result Code Symbolic Id Description
Bad_BrowseNameDuplicatedThe AssetName is already used.
Bad_UserAccessDeniedThe session (including the user) does not have the permissions required.