Couple of things..
1. With the very latest Lua which is based on the new SDK I notices yesterday that sometimes your code times out, maybe something to do with the handshaking - you might want to check that.
2. When you CLOSE the session, please have the option NOT to clear the screen - or have a PAUSE option. it is almost impossible to copy and paste from the right window when data is scrolling by - you might want this to get someone to help you debug output... so we need a means to STOP the scrolling to do copy and paste. Right now I'm unaware of any way to do this and the screen is cleared when you stop. Might be better to clear it when you START the comms session.
3. You asked for help with English as you say your English is bad. It seems pretty good to me. I can't immediately see anything that needs fixing.