I have a question: Is it possible to configure the Node-RED node "node-red-node-serialport" with msg.port to dynamically change the port? For example, when I send msg.port=COM1, the serialrequest node changes to COM1, and when I send msg.port=COM5, it changes to COM5 and returns its response. I have read about this functionality in the serialrequest node, but I haven't found any documentation on it.
Can I modify the code of this node to meet my needs, or if that's not possible, are there any other nodes that offer this functionality?
As mentioned in the doc, you have to send a msg.payload with the matching format to change the values in the configuration node the serial-control node is pointing at. This config node is shared with the serial-in/serial-out/serial-request node.
Is there another method to achieve this without using serial-control, or is there a change that can be made to the JavaScript code of the serial-request node to directly change the port with msg.port without using serial-control?