3.3. Consume a (c)VO from an Application (?)

The process to connect an application to the VO is simple. If Python is used, then the process is vastly simplified. The user needs to install the runtime as before:

../_images/app-vo-1.png

Installation step

Afterwards, the library can be used to consume a VO:

../_images/app-vo-2.png

Consume VO from App example

The “consumed_thing” object can be used with the corresponding API: - Property Read:

../_images/app-vo-3.png

Consume VO from App example (read property)

  • Property Write:

../_images/app-vo-4.png

Consume VO from App example (write property)

  • Action Invocation:

../_images/app-vo-5.png

Consume VO from App example (action invocation)

  • Event subscription

../_images/app-vo-6.png

Consume VO from App example (event subscription)

Detailed explanations are available here <https://netmode.gitlab.io/vo-wot/consumed.html>. If Python is not used, then the developer will need to use each protocol’s API directly.