opcua-client-nodeset · master
Docs · Spec · WoT

WoT — Web of Things Connector

Web of Things connector — exposes Things from the W3C WoT initiative over OPC UA. NodeIds only; the registrar is named WotConRegistrar.

OPC UA companion specification mapping the W3C Web of Things standard onto OPC UA. The "WotCon" name reflects that the spec is a connector — it lets a WoT Thing's Thing Description be addressed and manipulated through OPC UA.

What's in the package

Artefact Count
Enums
DTOs
Codecs
Registrars 1 (WotConRegistrar)

NodeIds-only. The registrar's name (WotConRegistrar) reflects the spec's URI casing — "WoT Connector".

Loading

php examples/wot/load.php
use PhpOpcua\Client\ClientBuilder;
use PhpOpcua\Nodeset\WoT\WotConRegistrar;

$client = ClientBuilder::create()
    ->loadGeneratedTypes(new WotConRegistrar())
    ->connect('opc.tcp://wot-gateway.local:4840');

Direct dependencies

None — WoT is a root spec.

What you typically use

WoTNodeIds::* for the spec's type-definition NodeIds. The typical interaction is: a WoT gateway exposes Things over OPC UA; your application browses the WoT-defined structure to discover exposed Properties, Actions, Events; reads / calls each via the standard OPC UA primitives.