Left here for archival purposes.

User avatar
By hreintke
#5073 LS,
I am experimenting witht the uart functions using a slightly adapted version of your example.

Code: Select alluart.setup( 0, 9600, 8, 0, 1, 0 )
    uart.on("data",
      function(data)
        if data=="quit" then
          uart.on("data")
          uart.setup( 0, 9600, 8, 0, 1, 1 )
        end       
    end, 0)


What I notice :
1/ I still get the ">" prompt after each transmitted line. I would expect the lua interpreter to be silent with run_input = 0
2/ I get a ">>" prompt after sending the quit. Looks like the last input is still send to interpreter

Kind regards,

Herman