From d82707acd0d0277ee2cdafcac6965f1df46c263a Mon Sep 17 00:00:00 2001 From: htmltiger <1429451+htmltiger@users.noreply.github.com> Date: Sun, 18 Jun 2023 09:49:34 +0100 Subject: [PATCH] rename to msg.action --- io/serialport/locales/en-US/25-serial.html | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/io/serialport/locales/en-US/25-serial.html b/io/serialport/locales/en-US/25-serial.html index 63a0f126..740b15a9 100644 --- a/io/serialport/locales/en-US/25-serial.html +++ b/io/serialport/locales/en-US/25-serial.html @@ -32,10 +32,8 @@
data to be sent via the serial port
baudrate string
baudrate of the serial port (optional)
-
disconnect any
-
disconnect the serial port eg. {disconnect: true} (optional)
-
connect any
-
attempt to reconnect of the serial port after disconnect eg. {connect: true} (optional)
+
action string
+
disconnect/reconnect the serial port eg. {action:"connect"} or {action:"disconnect"}(optional)

Only the msg.payload is sent.

Optionally the baudrate can be changed using msg.baudrate.

@@ -66,8 +64,7 @@
  • msg.waitfor 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.
  • Optionally the baudrate can be changed using msg.baudrate
  • -
  • msg.disconnect disconnect the serial port eg. {disconnect: true} (optional)
  • -
  • msg.connect attempt to reconnect of the serial port after disconnect eg. {connect: true} (optional)
  • +
  • msg.action disconnect/reconnect the serial port eg. {action:"connect"} or {action:"disconnect"} (optional)
  • Outputs