Web of Things Scripting API - W3
Web of Things Scripting API
Zoltan Kis, Intel Daniel Peintner, Siemens June 2019, M?nchen
WoT Concepts: Web vs WoT analogy
WoT is a framework to describe and integrate IoT platforms through Web technologies used in addressing, discovery, access control, data transfer, scripting.
Web page
Thing
URL
URI
HTTP
HTTP, CoAP, BLE, WS
HTML
Thing Description
ECMAScript WoT Script
Web search Discovery
Served page Exposed Thing
Rendered page Consumed Thing
?
?
? ? ?
?
? ?
Introduction
What does a WoT script do?
Architecture
Thing
Runtime App Script Scripting API
Interactions Security
Protocol Bindings
Alternatives: - Native implementations - Visual rules (e.g. WebThings) - Flows (e.g. Node-RED)
Coexisting Scripting APIs
Thing
Node.js Runtime App Script 1
Scripting API JS
Interaction Model
TD
Protocol Bindings
Architecture
Thing
Lua Runtime App Script 2
Scripting API Lua TD Interaction Model
Protocol Bindings
Some benefits
Architecture
Opportunities for Scripting
Use cases
Device Shadow
Application Scripting API Interaction Model Protocol Bindings
Web Browser
Application Scripting API Interaction Model Protocol Bindings
Virtual Thing
Application Scripting API Interaction Model Protocol Bindings
Existing Device
Thing
Thing
Application Scripting API
Interaction Model
Protocol Bindings
WoT Runtime
Script Execution Context (SEC) - Single event loop - Call stack, callback queue - Runs a single script - Serialized execution - Hosts multiple Thing instances
SEC Definitions - For ECMAScript (in browsers): - Multiple SEC - One SEC executed at a time - For WoT: more like in Node.js - SEC may be sandboxed - SEC may run in separate containers SECs may run in parallel
Execution context i (event loop)
TDs
Script
Things
Servient Aarrcchhiitteeccttuurree
WoT Runtime - Process hosting all structures - WoT API objects - Bindings plugin host - Script Manager Thing - System Things - May spawn new SECs - Security enforcement point (trusted)
Scripting API: Discovery, Client, Server
Scheduling System API bindings Special Things
WoT Runtime (Agent)
Interactions implementation
Security Configurations
Scripts can get to a device in the following ways: 1. Provisioned (e.g. flashed or copied to the device) 2. Using a built-in Thing that implements a Script Manager interface 3. By consuming a TD that contains a link to a script (idea for future development)
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- lab 1 introduction to typescript
- portability of serious game software components
- web of things scripting api w3
- design patterns in typescript pdf
- portablevn a generic mobile application for network
- angular 2 and typescript web application development
- 1 development of web based application using spa
- typescript quick reference hooman b com
- architecture and implementation of 3d engine based on webgl
Related searches
- web of science impact factor
- web of science search engine
- web of knowledge impact factor
- web of science journal ranking
- web of science literature search
- what is web of science
- web of science database search
- web of science databases journals
- web of science citation
- web of science search website
- web of science citation reports
- web of science citation search