6.3.10 WoTAssetFileType

6.3.10.1 Definition

The WoTAssetFileType ObjectType represents a TD File that is used to define an WoTAsset. It is defined in Table 16.

All instances shall support a mode of Write + EraseExisting when Open is called. They may support mode of Read. Other modes are not allowed.

When writing, if Close is called the file is discard and nothing changes. If CloseAndUpdate is called the file is parsed and the variables are updated to match the WoT TD file.

Table 16 – WoTAssetFileType Definition
Attribute Value
BrowseNameWoTAssetFileType
IsAbstractFalse
References NodeClass BrowseName DataType TypeDefinition Modelling Rule
Subtype of the 0:FileType defined in OPC 10000-5.
0:HasComponentMethodCloseAndUpdateDefined in 6.3.10.2Mandatory
Conformance Units
WoT Connectivity Base Functionality

The CloseAndUpdate Method parses the TD and creates Variables from the TD properties.

6.3.10.2 CloseAndUpdate Method

Signature

	CloseAndUpdate (
	  [in] 0:UInt32 FileHandle);
Table 17 – CloseAndUpdate Method Arguments
Argument Description
FileHandleThe handle for a file opened for writing.

Method Result Codes

Result Code Symbolic Id Description
Bad_InvalidStateThe file was not opened for writing.
Bad_DecodingErrorThe WoT Thing Description could not be parsed.
Bad_NotSupportedThe TD is valid but cannot be mapped to OPC UA.
Bad_NotFoundThe asset was not found on the network
Bad_UserAccessDeniedThe session does not have the permissions required.