node-red-contrib-telnet-client
Version:
bi-directional telnet client connection
43 lines (41 loc) • 1.36 kB
HTML
<script type="text/javascript">
RED.nodes.registerType('telnet-read', {
category: 'network',
color: '#c0c0c0',
defaults: {
name: { value: "" },
connection: { value: "", type: "telnet-connection" },
},
inputs: 0,
outputs: 1,
icon: "read.png",
label: function () {
return this.name || "read";
}
});
</script>
<script type="text/html" data-template-name="telnet-read">
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-input-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-input-connection"><i class="icon-tag"></i>Connection</label>
<input type="text" id="node-input-connection" placeholder="telnet-read">
</div>
</script>
<script type="text/html" data-help-name="telnet-read">
<p>A node that provides output from a telnet client connection</p>
<h3>Ouput</h3>
<dl class="message-properties">
<dt>
<code>payload</code>
<span class="property-type">string</span>
</dt>
<dd>
Line of text received
</dd>
</dl>
<h3>Details</h3>
<p>... more to come ... </p>
</script>