Announcement

Collapse
No announcement yet.

hs.OpenComPortEx Error

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

  • hs.OpenComPortEx Error

    I get this error
    Code:
    Running script Startup.vb :Exception has been thrown by the target of an invocation.
    Public member 'OpenComPortEx' on type 'hsapplication' not found.
    When Startup.vb runs with this
    Code:
    Dim e = hs.OpenComPortEx(15,"9600,n,8,1",0,"RFIDlogging.vb","Main")
               If e <> "" then
                   hs.WriteLog("Error", "Failed connecting to rfID receiver")
               Else
                   hs.WriteLog("COM 15", "Successful connection")
               End If
    Is OpenComPortEx still supported or do I have something wrong?

  • #2
    OpenComPortEx has gone in favour of OpenComPort and OpenComPortTerm, if you need a termination character then use the latter. Sadly OpenComPortEx is still in the documentation which causes a bit of confusion.
    My Plugins:

    Pushover 3P | DoorBird 3P | Current Cost 3P | Velleman K8055 3P | LAMetric 3P | Garadget 3P | Hive 3P |
    Yeelight 3P | Nanoleaf 3P

    Comment


    • #3
      Thanks

      Comment

      Working...
      X