iot-sol
Version:
Intel(r) IoT Services Orchestration Layer - HTML5 IDE + Node.js middleware to create and host distributed IoT Apps in minutes
155 lines (150 loc) • 7.25 kB
HTML
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="generator" content="pandoc" />
<meta name="author" content="Copyright 2015 Intel Corporation All Rights Reserved." />
<title>IoT Services Orchestration Layer</title>
<style type="text/css">code{white-space: pre;}</style>
<style type="text/css">
div.sourceCode { overflow-x: auto; }
table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode {
margin: 0; padding: 0; vertical-align: baseline; border: none; }
table.sourceCode { width: 100%; line-height: 100%; }
td.lineNumbers { text-align: right; padding-right: 4px; padding-left: 4px; color: #aaaaaa; border-right: 1px solid #aaaaaa; }
td.sourceCode { padding-left: 5px; }
code > span.kw { color: #007020; font-weight: bold; } /* Keyword */
code > span.dt { color: #902000; } /* DataType */
code > span.dv { color: #40a070; } /* DecVal */
code > span.bn { color: #40a070; } /* BaseN */
code > span.fl { color: #40a070; } /* Float */
code > span.ch { color: #4070a0; } /* Char */
code > span.st { color: #4070a0; } /* String */
code > span.co { color: #60a0b0; font-style: italic; } /* Comment */
code > span.ot { color: #007020; } /* Other */
code > span.al { color: #ff0000; font-weight: bold; } /* Alert */
code > span.fu { color: #06287e; } /* Function */
code > span.er { color: #ff0000; font-weight: bold; } /* Error */
code > span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
code > span.cn { color: #880000; } /* Constant */
code > span.sc { color: #4070a0; } /* SpecialChar */
code > span.vs { color: #4070a0; } /* VerbatimString */
code > span.ss { color: #bb6688; } /* SpecialString */
code > span.im { } /* Import */
code > span.va { color: #19177c; } /* Variable */
code > span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
code > span.op { color: #666666; } /* Operator */
code > span.bu { } /* BuiltIn */
code > span.ex { } /* Extension */
code > span.pp { color: #bc7a00; } /* Preprocessor */
code > span.at { color: #7d9029; } /* Attribute */
code > span.do { color: #ba2121; font-style: italic; } /* Documentation */
code > span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
code > span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */
code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
</style>
<link rel="stylesheet" href="styles/style.css" type="text/css" />
</head>
<body>
<div id="header">
<h1 class="title">IoT Services Orchestration Layer</h1>
<h2 class="author">Copyright 2015 Intel Corporation All Rights Reserved.</h2>
</div>
<div id="TOC">
<ul>
<li><a href="#timer">Timer</a><ul>
<li><a href="#date">date</a><ul>
<li><a href="#description">Description</a></li>
<li><a href="#inport">Inport</a></li>
<li><a href="#outport">Outport</a></li>
<li><a href="#output-format">Output Format</a></li>
</ul></li>
<li><a href="#date_format">date_format</a><ul>
<li><a href="#description-1">Description</a></li>
<li><a href="#inport-1">Inport</a></li>
<li><a href="#outport-1">Outport</a></li>
<li><a href="#example">Example</a></li>
</ul></li>
<li><a href="#delay">delay</a><ul>
<li><a href="#description-2">Description</a></li>
<li><a href="#inport-2">Inport</a></li>
<li><a href="#outport-2">Outport</a></li>
<li><a href="#example-1">Example</a></li>
</ul></li>
<li><a href="#interval">interval</a><ul>
<li><a href="#description-3">Description</a></li>
<li><a href="#inport-3">Inport</a></li>
<li><a href="#outport-3">Outport</a></li>
<li><a href="#example-2">Example</a></li>
</ul></li>
<li><a href="#timestamp">timestamp</a><ul>
<li><a href="#description-4">Description</a></li>
<li><a href="#inport-4">Inport</a></li>
<li><a href="#outport-4">Outport</a></li>
<li><a href="#example-3">Example</a></li>
</ul></li>
</ul></li>
</ul>
</div>
<h1 id="timer">Timer</h1>
<h2 id="date">date</h2>
<h3 id="description">Description</h3>
<p>This service will output current date.</p>
<h3 id="inport">Inport</h3>
<p><code>switch</code>: Boolean. The switching signal of date.</p>
<h3 id="outport">Outport</h3>
<p><code>out</code>: Date. Current date object.</p>
<h3 id="output-format">Output Format</h3>
<div class="sourceCode"><pre class="sourceCode javascript"><code class="sourceCode javascript"><span class="dv">2016-08</span><span class="op">-</span>05T02<span class="op">:</span><span class="dv">54</span><span class="op">:</span><span class="fl">16.</span>462Z</code></pre></div>
<h2 id="date_format">date_format</h2>
<h3 id="description-1">Description</h3>
<p>This service receive a date object and output date information according to specific format.</p>
<h3 id="inport-1">Inport</h3>
<p><code>date</code>: Date. Input date object. If date is not an instance of Date, it will using current Date.</p>
<h3 id="outport-1">Outport</h3>
<p><code>out</code>: String. Format result.</p>
<h3 id="example">Example</h3>
<div class="figure">
<img src="./pic/date_format.png" />
</div>
<p>This example generate date object using <code>date</code> service and output information in format of <em>yyyy-MM-dd hh:mm:ss</em> <code>out</code>: 2016-08-05 11:02:40</p>
<h2 id="delay">delay</h2>
<h3 id="description-2">Description</h3>
<p>Whenever <code>in</code> receives a value, the value will be pass to <code>out</code> after <code>delay</code> milliseconds.</p>
<h3 id="inport-2">Inport</h3>
<p><code>delay</code>: Integer. Default is 1000, <em>Non-trigger</em> inport. The time delay.</p>
<p><code>in</code>: Any.</p>
<h3 id="outport-2">Outport</h3>
<p><code>out</code>: Any. The value from <code>in</code> after delay.</p>
<h3 id="example-1">Example</h3>
<div class="figure">
<img src="./pic/add_delay.jpg" />
</div>
<p>For this example, if the add operation finished, 3 will be output after 1 second delay.</p>
<h2 id="interval">interval</h2>
<h3 id="description-3">Description</h3>
<p>This service can be used as event source, which periodically output 1 to <code>out</code>.</p>
<h3 id="inport-3">Inport</h3>
<p><code>in</code>: Integer. Default is 1000. The period of time.</p>
<h3 id="outport-3">Outport</h3>
<p><code>out</code>: Integer. At this stage, the output value is fixed to Integer 1</p>
<h3 id="example-2">Example</h3>
<div class="figure">
<img src="./pic/interval_sender.jpg" />
</div>
<p>After each 1 second, <code>out</code> will output a "hello" string.</p>
<h2 id="timestamp">timestamp</h2>
<h3 id="description-4">Description</h3>
<p>This service receive a date object and output according timestamp.</p>
<h3 id="inport-4">Inport</h3>
<p><code>date</code>: Date. Input date object. If date is not an instance of Date, it will using current Date.</p>
<h3 id="outport-4">Outport</h3>
<p><code>out</code>: String. Timestamp.</p>
<h3 id="example-3">Example</h3>
<div class="figure">
<img src="./pic/timestamp.png" />
</div>
<p>This example generate date object using <code>date</code> service and output <code>timestamp</code> <code>out</code>: 1470366406291</p>
</body>
</html>