|
-
Sep 18th, 2018, 03:43 PM
#7
Thread Starter
Addicted Member
Re: MSComm Serial Receive issue
 Originally Posted by passel
You do a println with the last data line followed by a println with an empty string, so there should be two line terminations in a row at the end of your data.
Your implementation just worked great, I got working it with vbCrLf & vbCrLf, did try to rework everithing (both source) just for vbCrLf, but that was not working for some reason, don't know why.
 Originally Posted by passel
Note that vrBuffer is declared to be static, so that it will hold its previous contents from one event to the next. If you "Dim" it, it goes away at the end of the sub and is created anew every time the sub is called.
It's nice that you pointed me out for that!
Also noticed that, if there is a MsgBox shown while receiving data, after pressing OK button on it, the Buffer will output like this:
Code:
T
EMP=25.40
HUMI=58.50
Is it because of blocking?
Thank you for your great support!
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|