1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

Fix serialport so can't report false addchar

This commit is contained in:
Dave Conway-Jones 2019-12-01 17:55:08 +00:00
parent 649ec33b80
commit 23f584268a
No known key found for this signature in database
GPG Key ID: 302A6725C594817F
2 changed files with 11 additions and 11 deletions

View File

@ -1,5 +1,5 @@
<script type="text/x-red" data-template-name="serial in">
<script type="text/html" data-template-name="serial in">
<div class="form-row node-input-serial">
<label for="node-input-serial"><i class="fa fa-random"></i> <span data-i18n="serial.label.serialport"></span></label>
<input type="text" id="node-input-serial">
@ -10,7 +10,7 @@
</div>
</script>
<script type="text/x-red" data-help-name="serial in">
<script type="text/html" data-help-name="serial in">
<p>Reads data from a local serial port.</p>
<p>Can either <ul><li>wait for a "split" character (default \n). Also accepts hex notation (0x0d).</li>
<li>Wait for a timeout in milliseconds from the first character received</li>
@ -43,7 +43,7 @@
});
</script>
<script type="text/x-red" data-template-name="serial out">
<script type="text/html" data-template-name="serial out">
<div class="form-row node-input-serial">
<label for="node-input-serial"><i class="fa fa-random"></i> <span data-i18n="serial.label.serialport"></span></label>
<input type="text" id="node-input-serial">
@ -54,7 +54,7 @@
</div>
</script>
<script type="text/x-red" data-help-name="serial out">
<script type="text/html" data-help-name="serial out">
<p>Provides a connection to an outbound serial port.</p>
<p>Only the <code>msg.payload</code> is sent.</p>
<p>Optionally the new line character used to split the input can be appended to every message sent out to the serial port.</p>
@ -83,7 +83,7 @@
});
</script>
<script type="text/x-red" data-template-name="serial request">
<script type="text/html" data-template-name="serial request">
<div class="form-row node-input-serial">
<label for="node-input-serial"><i class="fa fa-random"></i> <span data-i18n="serial.label.serialport"></span></label>
<input type="text" id="node-input-serial">
@ -94,7 +94,7 @@
</div>
</script>
<script type="text/x-red" data-help-name="serial request">
<script type="text/html" data-help-name="serial request">
<p>Provides a connection to a request/response serial port.</p>
<p>This node behaves as a tightly coupled combination of <code>serial in</code> and <code>serial out</code> nodes,
with which it shares the configuration.</p>
@ -143,7 +143,7 @@
});
</script>
<script type="text/x-red" data-template-name="serial-port">
<script type="text/html" data-template-name="serial-port">
<div class="form-row">
<label for="node-config-input-serialport"><i class="fa fa-random"></i> <span data-i18n="serial.label.serialport"></span></label>
<input type="text" id="node-config-input-serialport" style="width:66%;" data-i18n="[placeholder]serial.placeholder.serialport">
@ -235,7 +235,7 @@
<div class="form-tips" id="tip-count" hidden><span data-i18n="serial.tip.count"></span></div>
</script>
<script type="text/x-red" data-help-name="serial-port">
<script type="text/html" data-help-name="serial-port">
<p>Provides configuration options for a serial port.</p>
<p>The search button should return a list of available serial ports to choose from, or you
can type in the location if known.</p>
@ -258,7 +258,7 @@
newline: {value:"\\n"},
bin: {value:"false"},
out: {value:"char"},
addchar: {value:false},
addchar: {value:""},
responsetimeout: {value: 10000}
},
label: function() {

View File

@ -1,6 +1,6 @@
{
"name" : "node-red-node-serialport",
"version" : "0.9.1",
"version" : "0.9.2",
"description" : "Node-RED nodes to talk to serial ports",
"dependencies" : {
"serialport" : "^8.0.5"
@ -17,7 +17,7 @@
"serialport": "25-serial.js"
}
},
"engines" : { "node" : ">=8" },
"engines" : { "node" : ">=8.6.0" },
"author": {
"name": "Dave Conway-Jones",
"email": "ceejay@vnet.ibm.com",