Whats happen if an ; (semicolon) or /n (LF) is in the date send by a node ?


  • Admin

    Gateway will handle it correctly but the linefeed might confuse the controller. Same goes for semicolon if the controller splits input on this.


  • Hardware Contributor

    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\n

    For 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.


Log in to reply
 

Looks like your connection to MySensors Forum was lost, please wait while we try to reconnect.