LogMeTT.com • Problem with rcvln.
Page 1 of 1

Problem with rcvln.

Posted: Fri Apr 21, 2017 8:26 am
by mayank867
Hello ,

I am having a problem with recvln. I send command and device will give me some acknowledgment and after again I send command and device will give acknowledgment but the second time I use rcvln command then it will also store first data of recvln. I only want to store new data in inputstr. How can I do that?

Re: Problem with rcvln.

Posted: Fri Apr 21, 2017 8:48 am
by Trevor
It is better if you can provide the code in question otherwise it's difficult to know what is going on. Please provide. Need to know what the "result" variable is after you call recvln. Also need to know what you have set timeout to be.

If you provide more detail on what you are trying to achieve overall I can suggest an approach e.g.
what are you sending, what gets sent back in response, what decisions do you need to make with respect to what is received, Does the command itself get echoed back etc. etc.