# Functions
NewInteractionOutput creates a new interaction output from object data data is native that will be ser encoded using the given Schema Schema describes the value.
NewInteractionOutputFromJson creates a new interaction output for reading output data @param serEncoded is raw data that will be ser parsed using the given Schema @param Schema describes the value.
NewTD creates a new Thing Description document with properties, events and actions Its structure:
{ @context: "http://www.w3.org/ns/td", id: <thingID>, // urn:[{prefix}:]{randomID} title: string, // required.
NewThingValue creates a new ThingValue object with the address of the thing, the action or event id and the serialized value data This copies the value buffer.
# Structs
ActionAffordance metadata that defines how to invoke a function of a Thing to manipulate its state, eg toggle lamp on/off or trigger a process.
DataSchema with metadata that describes the data format used.
EventAffordance with metadata that describes an event source, which asynchronously pushes event data to MemberRoles (e.g., overheating alerts).
Form can be viewed as a statement of "To perform an operation type operation on form context, make a request method request to submission target" where the optional form fields may further describe the required request.
InteractionOutput to expose the data returned from WoT Interactions to applications.
PropertyAffordance metadata that defines Thing properties This is a Subclass of the InteractionAffordance Class and the DataSchema Class.
TD contains the Thing Description document Its structure is:
{ @context: "http://www.w3.org/ns/td", @type: <deviceType>, id: <thingID>, title: <human description>, (why is this not a property?) modified: <iso8601>, actions: {actionID: ActionAffordance, ...}, events: {eventID: EventAffordance, ...}, properties: {propID: PropertyAffordance, ...} }.
ThingValue contains a Thing event, action or property value
{ "agentID": {string}, "thingID": {string}, "name": {string}, "data": [{byte array}], "created": {int64}, // msec since epoc }.