Like you suppose it's
.
This defines the end of a line.
And it makes only sense to process complete lines.
Some commands respons with only OK
, some with some data.
So you should build at first a parser, who can detect complete lines, so they can be
processed with a function that handles responses.
Sometimes you can get even responses you don't request, like change events net login
or the sim status #QSS: 2
.
So you need to know what answer you expect and wait until you get this
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…