Whats happen if an ; (semicolon) or /n (LF) is in the date send by a node ?
-
Gateway will handle it correctly but the linefeed might confuse the controller. Same goes for semicolon if the controller splits input on this.
-
I think the \n or the ; should be encoded differently.
In facts, the protocol says that the message is finished by a \n . So, the first one which will be encountered will mark the end of the message.So to be concise :
0;3;0;9;1;foo\nbar\n will be understood as 0;3;0;9;1;foo\nFor the ; I think it's not a problem ? Haven't tried yet.
-
Multi messages like
0;3;0;9;1;foo\n0;3;0;9;2;bar\n0;3;0;9;3;foo\n0;3;0;9;2;bar\n
must be understand also. I got it from the tcp stream of the actual ether-gw.
2 out of 3
Suggested Topics
-
Arduino Celebrates 10 years (Malmö/Sweden)
Announcements • 29 Mar 2014, 17:08 • hek 29 Mar 2014, 17:08 -
Radio waking up for no reason.
Development • 4 Jul 2020, 21:09 • Sasquatch 15 Jan 2025, 08:33 -
Adding Listen only device to my system.
Development • 26 Feb 2025, 00:39 • dpcons 26 Feb 2025, 06:26 -
Sending offset to node
Development • 31 Jan 2025, 00:59 • bsl88k 4 Feb 2025, 12:14 -
MQTT-Help me understand about the MQTT Gateway.
Development • 29 days ago • dpcons 18 days ago -
PJON and Minicore not working
Development • 9 days ago • Trand 9 days ago