I would like to know how to check the serial port unconnected message.
For example, if you set msg.status.text in the debug node like the status node, you want the serial port or mqtt to check the unconnected messages in the debug node, just as the connected or connected messages are still activated.
I want to know if it is possible to receive disconnected messages from the debug node.
Below is the picture.
I want to receive the serial port COM5 error message I want from the debug node.
Ah, I want to receive the error message that I want to connect to from the debug node.
I know what kind of error it is.
I made it like that on purpose for testing.
A message stating that it is connected sends a message from the status node to the debug node.
If you set status.text in the debug node, it says connected or connecting.
However, the error code cannot be checked in the debug node.
No - you are correct - the error code can't be checked in the debug. For a couple of reasons.
1 - the debug is looking for status.text. Not what the error is.
2 - errors are not status messages.
If you want to see the error message you may need to use the catch node and point it to the com port node.
(open the catch node and change it from ALL NODES to SELECTED.)
The debug node is just for displaying the content of messages. You can feed the status node into, for example, a Switch node and check the message content in there. Or into a function node.