• Support
  • Articles
  • Resources
  • Products

Problem with rcvln.

Moderator: boris

2 postsPage 1 of 1

mayank867
Newbie

Posts:
5
Joined: Thu Apr 06, 2017 1:23 pm
by mayank867 » Fri Apr 21, 2017 8:26 am
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?
Trevor
Guru

Posts:
485
Joined: Wed Jul 26, 2006 8:47 am
by Trevor » Fri Apr 21, 2017 8:48 am
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.
Display posts from previous:
Sort by:

2 postsPage 1 of 1

Users browsing this forum: No registered users