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.
1 out of 3
Suggested Topics
-
Arduino Celebrates 10 years (Malmö/Sweden)
Announcements • 29 Mar 2014, 17:08 • hek 29 Mar 2014, 17:08 -
LAN8720A - will mysensors work with this module
Development • 13 Nov 2024, 17:06 • Marcin 15 Nov 2024, 10:59 -
Gateway without a radio
Development • 12 Jan 2025, 23:19 • OldSurferDude 14 Jan 2025, 22:07 -
Home Assistant/MySensors quirks
Development • 14 days ago • OldSurferDude 14 days ago -
Radio waking up for no reason.
Development • 4 Jul 2020, 21:09 • Sasquatch 15 Jan 2025, 08:33 -
Counting Incoming and Outgoing Messages from a Gateway
Development • 10 Dec 2024, 21:57 • Trand 14 Dec 2024, 20:23