Announcement

Collapse
No announcement yet.

SendToComPort Data Question?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    SendToComPort Data Question?

    I need to send the following command to a piece of equipment, but up to this point I haven't had much luck. I'm not at the Homeseer computer right now, but I have come up with the following scenario and am wondering if I am on track? I need to send the following command to the device:

    TM="This is a test" (terminated by a carriage return)

    The lattest I have come up with is the following:

    "TM=" & Chr(34) & "This is a test" & Chr(34) & Chr(13)

    The Chr(34) is the code for the quote symbol ("). Does this look like it will work with the sendtocomport command? Thanks in advance !!!!!!

    #2
    Why not?

    hs.SendToComPort 1,"TM=" + Chr(34) + "This is a test" + Chr(34) + vbcrlf

    or

    hs.SendToComPort 1,"TM=""This is a test""" + vbcrlf

    Would work as well

    Mitch
    http://www.midondesign.com

    Comment

    Working...
    X