node-red-contrib-mysensors icon indicating copy to clipboard operation
node-red-contrib-mysensors copied to clipboard

myscontroller output is missing newline

Open tilegg opened this issue 4 years ago • 2 comments

The output channel of myscontroller is not adding a newline at the end of the message payload. This prevents the ethernet gateway from accepting/sending the message.

This prevents node-id assignments from working when using the ethernet gateway. Can be worked around by adding a JS-Function that appends newline to the messages payload. Once this is added node-id assignment works as expected.

Example transmission:

Incoming message:

10;255;3;0;6;0\n
"INTERNAL;nodeId:10;childId:255;SubType:I_CONFIG;ACK:0;Payload:0"

Actual message sent: 10;255;3;0;6;M

Expected message 10;255;3;0;6;M\n

tilegg avatar Aug 07 '20 22:08 tilegg

This seems to be an very old issue and still not resolved. I am using the serial gateway and after appending the \n the payload string I still don't get my sensors to react. If I connect the gateway to a terminal and send the exact message manually, it works fine. Is there a way to determine what is actually sent by the node?

mariusl avatar Jan 02 '23 08:01 mariusl

Long overdue, but this should be fixed now, as I have added an option for adding newlines to output from controller node

@mariusl / @tilegg could any of you test 4.2.0?

tbowmo avatar Jun 01 '23 17:06 tbowmo