rename to msg.action

This commit is contained in:
htmltiger 2023-06-18 09:49:34 +01:00 committed by GitHub
parent 7e509d832e
commit d82707acd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,10 +32,8 @@
<dd>data to be sent via the serial port</dd>
<dt class="optional">baudrate <span class="property-type">string</span></dt>
<dd>baudrate of the serial port (optional)</dd>
<dt class="optional">disconnect <span class="property-type">any</span></dt>
<dd>disconnect the serial port eg. {disconnect: true} (optional)</dd>
<dt class="optional">connect <span class="property-type">any</span></dt>
<dd>attempt to reconnect of the serial port after disconnect eg. {connect: true} (optional)</dd>
<dt class="optional">action <span class="property-type">string</span></dt>
<dd>disconnect/reconnect the serial port eg. {action:"connect"} or {action:"disconnect"}(optional)</dd>
</dl>
<p>Only the <code>msg.payload</code> is sent.</p>
<p>Optionally the baudrate can be changed using <code>msg.baudrate</code>.</p>
@ -66,8 +64,7 @@
<li><code>msg.waitfor</code> must be a single character, escape code, or hex code.
If set, the node will wait until it matches that character in the stream and then start the output.</li>
<li>Optionally the baudrate can be changed using <code>msg.baudrate</code></li>
<li><code>msg.disconnect</code> disconnect the serial port eg. {disconnect: true} (optional)</li>
<li><code>msg.connect</code> attempt to reconnect of the serial port after disconnect eg. {connect: true} (optional)</li>
<li><code>msg.action</code> disconnect/reconnect the serial port eg. {action:"connect"} or {action:"disconnect"} (optional)</li>
</ul>
<h3>Outputs</h3>
<ul>