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.
3 out of 3
Suggested Topics
-
Arduino Celebrates 10 years (Malmö/Sweden)
Announcements • 29 Mar 2014, 17:08 • hek 29 Mar 2014, 17:08 -
PJON and Minicore not working
Development • 6 days ago • Trand 6 days ago -
Gateway without a radio
Development • 12 Jan 2025, 23:19 • OldSurferDude 14 Jan 2025, 22:07 -
Home Assistant/MySensors quirks
Development • 11 days ago • OldSurferDude 11 days ago -
Saving last known good state, but not in EEPROM
Development • 30 Jan 2024, 18:46 • OldSurferDude 15 Jan 2025, 08:51 -
Adding Listen only device to my system.
Development • 30 days ago • dpcons 29 days ago